/*
Theme Name: PlugStore
Theme URI: https://example.com
Author: Haris
Description: Lean storefront theme for selling WordPress plugins via Freemius checkout.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: plugstore
*/

:root {
  --bg: #0b0f19;
  --bg-soft: #111827;
  --card: #161e2e;
  --border: #232d42;
  --text: #e5e9f0;
  --muted: #94a3b8;
  --accent: #6366f1;
  --accent-2: #22d3ee;
  --accent-hover: #818cf8;
  --green: #34d399;
  --radius: 14px;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.site-logo { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.site-logo span { color: var(--accent); }
.site-nav a { color: var(--muted); margin-left: 28px; font-size: 15px; font-weight: 500; }
.site-nav a:hover, .site-nav a.current { color: var(--text); }
.site-nav a.nav-cta {
  background: var(--accent); color: #fff; padding: 9px 18px; border-radius: 999px;
}
.site-nav a.nav-cta:hover { background: var(--accent-hover); }

/* Hero */
.hero { padding: 96px 0 72px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto;  height: 520px;
  background: radial-gradient(600px 260px at 50% 0%, rgba(99,102,241,.25), transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(34px, 5.5vw, 58px); line-height: 1.12; font-weight: 800;
  letter-spacing: -0.03em; max-width: 820px; margin: 0 auto 20px;
}
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--muted); font-size: 20px; max-width: 640px; margin: 0 auto 36px; }
.btn {
  display: inline-block; font-weight: 600; font-size: 16px; border-radius: 10px;
  padding: 14px 28px; transition: all .15s ease; cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); margin-left: 12px; }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-lg { padding: 16px 34px; font-size: 17px; }

/* Sections */
section.block { padding: 72px 0; }
section.block.alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card .badge {
  display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--accent-2); background: rgba(34,211,238,.1);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 16px;
}
.card h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--accent-hover); }
.card p.desc { color: var(--muted); font-size: 15.5px; flex-grow: 1; margin-bottom: 20px; }
.card .card-foot { display: flex; align-items: center; justify-content: space-between; }
.card .price { font-weight: 800; font-size: 18px; }
.card .price small { color: var(--muted); font-weight: 500; font-size: 13px; }
.card .btn { padding: 10px 20px; font-size: 15px; }

/* Feature list */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature .ico { font-size: 26px; margin-bottom: 12px; display: block; }
.feature h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }

/* Product single */
.product-hero { padding: 80px 0 56px; text-align: center; }
.product-hero .badge { color: var(--accent-2); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .08em; }
.product-hero h1 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 800; letter-spacing: -0.02em; margin: 12px 0 16px; }
.product-hero p.lead { color: var(--muted); font-size: 19px; max-width: 620px; margin: 0 auto; }
.checklist { list-style: none; max-width: 680px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; text-align: left; }
.checklist li { padding-left: 30px; position: relative; color: var(--text); font-size: 16px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; }
.plan {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; text-align: center; position: relative;
}
.plan.popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 16px 48px rgba(99,102,241,.18); }
.plan.popular::after {
  content: "Most popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px;
}
.plan h4 { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 14px; }
.plan .amount { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; }
.plan .amount small { font-size: 15px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; margin: 22px 0 26px; color: var(--muted); font-size: 15px; }
.plan ul li { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.plan ul li:last-child { border-bottom: none; }
.plan .btn { width: 100%; }

/* Content / blog */
.content-area { max-width: 760px; margin: 0 auto; padding: 64px 24px; }
.content-area h1 { font-size: 38px; letter-spacing: -0.02em; margin-bottom: 24px; }
.content-area h2 { font-size: 28px; margin: 40px 0 16px; }
.content-area h3 { font-size: 22px; margin: 32px 0 12px; }
.content-area p, .content-area ul, .content-area ol { margin-bottom: 18px; color: #cbd5e1; }
.content-area ul, .content-area ol { padding-left: 26px; }
.content-area code { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; font-size: 14.5px; }
.content-area pre { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 18px; overflow-x: auto; margin-bottom: 18px; }
.post-list article { border-bottom: 1px solid var(--border); padding: 28px 0; }
.post-list h2 { font-size: 24px; margin: 0 0 8px; }
.post-list h2 a { color: var(--text); }
.post-list .meta { color: var(--muted); font-size: 14px; margin-bottom: 8px; }

/* CTA band */
.cta-band { text-align: center; padding: 80px 24px; }
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.cta-band p { color: var(--muted); font-size: 18px; margin-bottom: 30px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: 14.5px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); margin-left: 20px; }
.site-footer a:hover { color: var(--text); }

/* Notices */
.setup-notice {
  background: rgba(250, 204, 21, .08); border: 1px solid rgba(250, 204, 21, .35);
  color: #fde68a; border-radius: 10px; padding: 14px 18px; font-size: 14.5px;
  max-width: 680px; margin: 24px auto 0;
}

@media (max-width: 720px) {
  .site-nav a { margin-left: 16px; font-size: 14px; }
  .checklist { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
}
