/* PixlPilot Demo Styles (intentionally imperfect) */
:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e5e7eb;
  --shadow: rgba(15, 23, 42, 0.08);
  --brand: #16a34a; /* Green primary */
  --brand-alt: #22c55e; /* Slightly off on purpose */
  --accent: #10b981; /* Legacy accent (used inconsistently) */
  --success: #22c55e;
  --warn: #f59e0b;
  --error: #ef4444;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: "Space Grotesk", Inter, system-ui, sans-serif; }
img { display: block; max-width: 100%; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--border); z-index: 40; backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-glyph { width: 28px; height: 28px; border-radius: 6px; box-shadow: 0 1px 0 var(--shadow); display:inline-block; background: linear-gradient(135deg, var(--brand), var(--brand-alt)); }
.brand-name { font-weight: 700; letter-spacing: 0.02em; }
.main-nav { display: flex; gap: 22px; }
.main-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.header-cta .btn-small { padding: 8px 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 10px; text-decoration: none; border: 1px solid transparent; font-weight: 700; box-shadow: 0 2px 10px var(--shadow); transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-secondary { background: #fff; border-color: var(--brand-alt); color: var(--brand); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--muted); }
.btn.skewed { transform: skewX(-2deg); }

/* Hero */
.hero { padding: 56px 0 28px; /* slightly short bottom on purpose */ }
.hero-inner { display: grid; grid-template-columns: 1.06fr 0.94fr; align-items: center; gap: 28px; }
.hero-copy h1 { font-size: 44px; line-height: 1.1; margin: 0 0 12px; }
.hero-sub { color: var(--muted); max-width: 56ch; margin: 0 0 18px; }
.cta-buttons { display: flex; align-items: center; }
.cta-buttons .btn + .btn { margin-left: 13px; /* odd spacing */ }

.hero-visual { display: flex; justify-content: center; }
.hero-illustration { transform: translateY(1.7px); /* subtle misalignment */ position: relative; }
.hero-photo { position: absolute; right: -14px; top: -10px; width: 300px; height: 180px; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 24px var(--shadow); filter: saturate(1.05); }
.mock-window { width: 520px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px var(--shadow); background: #fff; }
.mock-toolbar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.mock-toolbar .dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.mock-toolbar .dot.red { background: #ef4444; }
.mock-toolbar .dot.yellow { background: #f59e0b; }
.mock-toolbar .dot.green { background: #10b981; }
.toolbar-title { margin-left: 8px; color: var(--muted); font-weight: 600; }
.mock-body { padding: 18px; display: grid; gap: 14px; grid-template-columns: 1fr; }
.mock-card { border: 1px solid var(--border); border-radius: 12px; padding: 18px; background: #fff; }
.mock-card.misaligned { margin-left: 3px; /* off a bit */ }
.swatches { display: flex; gap: 10px; }
.swatch { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); box-shadow: inset 0 1px 0 #fff8; }
.swatch.primary { background: var(--brand); }
.swatch.accent { background: var(--accent); }
.swatch.accent.off { filter: hue-rotate(2deg) saturate(1.02); }
.swatch.neutral { background: #e2e8f0; }

/* Features */
.features { padding: 48px 0; }
.section-head { text-align: center; margin-bottom: 22px; }
.section-head.narrow { max-width: 620px; margin-inline: auto; }
.section-head h2 { margin: 0 0 6px; font-size: 30px; }
.section-head p { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.feature-card { border: 1px solid var(--border); border-radius: 14px; padding: 20px; background: #fff; box-shadow: 0 6px 18px var(--shadow); }
.feature-card .icon { font-size: 20px; }
.feature-card h3 { margin: 10px 0 6px; font-size: 18px; letter-spacing: 0.01em; }
.feature-card.bumped { margin-top: 14px; /* vertical misalignment on purpose */ }
.feature-card.alt-accent { border-color: var(--brand-alt); }

/* Example */
.example { padding: 46px 0; background: #fafafa; border-top: 1px solid var(--border); }
.example-inner { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 24px; align-items: center; }
.example-copy p { color: var(--muted); }
.example-controls { display: flex; gap: 10px; margin-top: 10px; }
.example-visual { display: flex; justify-content: center; }
.example-card { width: 420px; border: 1px solid var(--border); border-radius: 16px; padding: 18px; background: #fff; box-shadow: 0 8px 22px var(--shadow); }
.example-photo { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }
.card-title { margin: 0 0 8px; }
.preview-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pill { font-size: 12px; color: var(--muted); padding: 6px 10px; border: 1px solid var(--border); border-radius: 30px; background: #fff; }
.chip { font-size: 12px; padding: 6px 8px; border-radius: 8px; border: 1px solid transparent; }
.chip-green { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.preview-box { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.preview-box.weird-gap { gap: 7px; /* slightly off */ }
.box-thing { height: 56px; border-radius: 10px; border: 1px solid var(--border); background: #f8fafc; }
.box-thing.one { background: linear-gradient(180deg, #eef2ff, #e2e8f0); }
.box-thing.two { background: linear-gradient(180deg, #ecfeff, #e2e8f0); }
.box-thing.three { background: linear-gradient(180deg, #fdf2f8, #e2e8f0); }
.box-thing.three.misalign { transform: translateY(1px); /* tiny nudge */ }

/* Pricing */
.pricing { padding: 44px 0 60px; }
.pricing-card { max-width: 420px; margin: 0 auto; border: 1px solid var(--border); border-radius: 16px; padding: 18px; background: #fff; box-shadow: 0 10px 26px var(--shadow); text-align: center; }
.price { font-size: 34px; margin: 8px 0 6px; }
.price span { color: var(--muted); font-size: 16px; }
.list { list-style: none; padding: 0; margin: 12px 0 16px; text-align: left; }
.list li { padding: 6px 0; border-bottom: 1px dashed #e2e8f0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.foot-nav { display: flex; gap: 18px; }
.foot-nav a { color: var(--muted); text-decoration: none; }

/* Small screens */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .example-inner { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
} 