/* =========================================
   Y! Invoice Theme — theme.css v1.0.0
   SCREAMED OUT STUDIOS
   ========================================= */

:root {
  --brand: #6366f1;
  --brand-dark: #4f46e5;
  --dark: #1a1a2e;
  --dark2: #16213e;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #f4f5f7;
  --white: #ffffff;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

/* Remove WP admin bar padding on frontend */
body.admin-bar .yit-topnav { top: 32px; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ---- Buttons ---- */
.yit-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: none; transition: all .2s; text-decoration: none !important;
}
.yit-btn-primary { background: var(--brand); color: #fff; }
.yit-btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(99,102,241,.4); }
.yit-btn-outline { background: transparent; color: var(--dark); border: 2px solid var(--border); }
.yit-btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.yit-btn-white { background: #fff; color: var(--brand); font-weight: 700; }
.yit-btn-white:hover { background: #f3f4f6; transform: translateY(-2px); }
.yit-btn-large { padding: 16px 40px; font-size: 16px; }

/* ---- Top Nav ---- */
.yit-topnav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0 24px; height: 68px; display: flex; align-items: center; background: rgba(26,26,46,.95); backdrop-filter: blur(12px); }
.yit-topnav-inner { max-width: 1200px; width: 100%; margin: 0 auto; display: flex; align-items: center; gap: 40px; }
.yit-logo { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -.5px; text-decoration: none !important; }
.yit-logo span { color: var(--brand); }
.yit-topnav-links { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.yit-topnav-links a { color: rgba(255,255,255,.75); font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: 8px; text-decoration: none; transition: all .2s; }
.yit-topnav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.yit-cta-btn { background: var(--brand) !important; color: #fff !important; border-radius: 50px !important; padding: 8px 20px !important; }
.yit-cta-btn:hover { background: var(--brand-dark) !important; }

/* ---- Hero ---- */
.yit-hero { background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 60%, #0d1b2a 100%); min-height: 100vh; padding: 100px 24px 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 1200px; margin: 0 auto; }
.yit-hero-badge { display: inline-block; background: rgba(99,102,241,.2); color: #a5b4fc; font-size: 14px; font-weight: 600; padding: 6px 16px; border-radius: 50px; margin-bottom: 20px; border: 1px solid rgba(99,102,241,.3); }
.yit-hero-title { font-size: 52px; font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1.5px; }
.yit-gradient-text { background: linear-gradient(135deg, var(--brand), #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.yit-hero-subtitle { font-size: 18px; color: rgba(255,255,255,.7); margin-bottom: 36px; line-height: 1.7; max-width: 480px; }
.yit-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.yit-hero-note { font-size: 13px; color: rgba(255,255,255,.45); }

/* Demo card */
.yit-hero-demo { display: flex; justify-content: center; }
.yit-demo-card { background: #fff; border-radius: var(--radius); box-shadow: 0 24px 80px rgba(0,0,0,.35); overflow: hidden; width: 340px; max-width: 100%; }
.yit-demo-header { background: var(--dark); padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; }
.yit-demo-brand { color: #fff; font-weight: 700; font-size: 15px; }
.yit-demo-invoice-label { color: var(--brand); font-size: 20px; font-weight: 800; letter-spacing: -1px; }
.yit-demo-body { padding: 18px 22px; }
.yit-demo-to { margin-bottom: 16px; }
.yit-demo-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: #9ca3af; margin-bottom: 4px; }
.yit-demo-name { font-size: 16px; font-weight: 700; color: var(--dark); }
.yit-demo-items { margin-bottom: 12px; }
.yit-demo-item { display: flex; justify-content: space-between; font-size: 13px; color: #555; padding: 6px 0; border-bottom: 1px solid #f3f4f6; }
.yit-demo-total { display: flex; justify-content: space-between; background: var(--brand); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 700; font-size: 15px; margin-top: 8px; }
.yit-demo-actions { display: flex; gap: 6px; padding: 14px 22px; background: #f9fafb; border-top: 1px solid #f3f4f6; }
.yit-demo-btn { flex: 1; text-align: center; padding: 7px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; }
.yit-demo-btn.green { background: #d1fae5; color: #059669; }
.yit-demo-btn.blue { background: #eff6ff; color: #2563eb; }
.yit-demo-btn.wa { background: #dcfce7; color: #16a34a; }

/* ---- Sections ---- */
.yit-section-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.yit-section-label { display: inline-block; background: rgba(99,102,241,.1); color: var(--brand); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; padding: 4px 14px; border-radius: 50px; margin-bottom: 16px; }
.yit-section-title { font-size: 38px; font-weight: 800; color: var(--dark); margin-bottom: 48px; letter-spacing: -.5px; line-height: 1.2; }

/* ---- Features ---- */
.yit-features { padding: 100px 0; background: var(--bg); }
.yit-features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.yit-feature-card { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); transition: all .2s; }
.yit-feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); }
.yit-feature-icon { font-size: 32px; margin-bottom: 14px; }
.yit-feature-card h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.yit-feature-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---- How it works ---- */
.yit-how { padding: 100px 0; }
.yit-steps { display: flex; align-items: center; gap: 0; }
.yit-step { flex: 1; padding: 32px; background: #f9fafb; border-radius: var(--radius); text-align: center; }
.yit-step-num { width: 48px; height: 48px; background: var(--brand); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; margin: 0 auto 16px; }
.yit-step h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.yit-step p { font-size: 14px; color: var(--muted); }
.yit-step-arrow { font-size: 24px; color: var(--brand); padding: 0 16px; flex-shrink: 0; }

/* ---- Pricing ---- */
.yit-pricing { padding: 100px 0; background: var(--bg); }
.yit-pricing-grid { display: flex; justify-content: center; }
.yit-pricing-card { background: #fff; border-radius: var(--radius); padding: 40px; border: 2px solid var(--brand); max-width: 420px; width: 100%; position: relative; box-shadow: 0 12px 40px rgba(99,102,241,.15); }
.yit-pricing-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 16px; border-radius: 50px; white-space: nowrap; }
.yit-pricing-plan { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--brand); margin-bottom: 8px; }
.yit-pricing-price { font-size: 48px; font-weight: 900; color: var(--dark); margin-bottom: 28px; }
.yit-pricing-price span { font-size: 18px; font-weight: 500; color: var(--muted); }
.yit-pricing-features { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.yit-pricing-features li { font-size: 15px; color: var(--text); }

/* ---- CTA ---- */
.yit-cta { background: linear-gradient(135deg, var(--dark), #1e1b4b); padding: 100px 0; }

/* ---- Footer ---- */
.yit-footer { background: var(--dark); padding: 60px 24px 0; }
.yit-footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr; gap: 60px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.yit-footer-brand .yit-logo { font-size: 22px; display: inline-block; margin-bottom: 14px; }
.yit-footer-brand p { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.7; }
.yit-footer-links { display: flex; gap: 40px; }
.yit-footer-links h4 { color: rgba(255,255,255,.6); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.yit-footer-links a { display: block; color: rgba(255,255,255,.5); font-size: 14px; margin-bottom: 10px; text-decoration: none; transition: color .2s; }
.yit-footer-links a:hover { color: #fff; }
.yit-footer-bottom { max-width: 1200px; margin: 0 auto; padding: 20px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.3); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .yit-features-grid { grid-template-columns: repeat(2, 1fr); }
  .yit-hero { grid-template-columns: 1fr; padding-top: 120px; }
  .yit-hero-demo { display: none; }
}
@media (max-width: 768px) {
  .yit-hero-title { font-size: 36px; }
  .yit-section-title { font-size: 28px; }
  .yit-topnav-links a:not(.yit-cta-btn) { display: none; }
  .yit-steps { flex-direction: column; gap: 16px; }
  .yit-step-arrow { transform: rotate(90deg); }
  .yit-footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .yit-footer-links { flex-direction: column; gap: 24px; }
}
@media (max-width: 480px) {
  .yit-hero { padding: 100px 16px 60px; }
  .yit-hero-title { font-size: 28px; }
  .yit-features-grid { grid-template-columns: 1fr; }
  .yit-hero-actions { flex-direction: column; }
}
