/* ==========================================================
   Enxora Draw — Marketing site stylesheet
   Design language: hand-drawn sketch meets clean product UI
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --paper: #fbfaf5;
  --paper-dim: #f3f1e9;
  --ink: #1c1f1b;
  --ink-soft: #565f57;
  --line: #dfdccd;
  --green-900: #14532d;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-400: #4ade80;
  --green-100: #dcfce7;
  --graphite: #45504a;
  --white: #ffffff;
  --radius: 14px;
  --shadow-soft: 0 6px 24px rgba(28, 31, 27, 0.06);
  --font-display: 'Caveat', cursive;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(251,250,245,0.92);
  backdrop-filter: blur(6px); z-index: 50;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; }
.brand img { height: 30px; width: auto; }
.brand b { color: var(--green-700); font-weight: 800; }
.site-nav { display: flex; align-items: center; gap: 22px; font-weight: 500; }
.site-nav a:not(.btn) { color: var(--graphite); }
.site-nav a:not(.btn):hover { color: var(--green-700); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 10px; font-weight: 600; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer; transition: all .15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green-600), var(--green-400));
  color: #fff; box-shadow: 0 4px 14px rgba(22,163,74,0.28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(22,163,74,0.35); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { color: var(--graphite); padding: 10px 14px; }
.btn-ghost:hover { color: var(--green-700); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--green-100); color: var(--green-700); font-weight: 600; font-size: 0.85rem;
  margin-bottom: 18px;
}
h1 {
  font-family: var(--font-display); font-weight: 700; font-size: 4rem; line-height: 1.02;
  margin: 0 0 20px; color: var(--ink);
}
h1 em { font-style: normal; color: var(--green-700); position: relative; }
.lead { font-size: 1.2rem; color: var(--ink-soft); margin-bottom: 30px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; }
.hero-art {
  background: var(--white); border: 2px solid var(--ink); border-radius: 18px;
  padding: 10px; box-shadow: var(--shadow-soft); transform: rotate(1.2deg);
}
.hero-art img { border-radius: 10px; }

/* ---------- Features ---------- */
.features { padding: 70px 0; }
.features h2 { text-align: center; font-family: var(--font-display); font-size: 2.6rem; margin-bottom: 40px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--white); border: 1.5px dashed var(--line); border-radius: var(--radius);
  padding: 26px; transition: border-color .15s, transform .15s;
}
.feature-card:hover { border-color: var(--green-600); transform: translateY(-3px); }
.feature-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- CTA ---------- */
.cta { padding: 40px 0 100px; }
.cta-box {
  background: var(--ink); color: var(--paper); border-radius: 20px; padding: 60px 40px;
  text-align: center;
}
.cta-box h2 { font-family: var(--font-display); font-size: 2.4rem; margin: 0 0 10px; }
.cta-box p { color: #c9cdc6; margin-bottom: 26px; }

/* ---------- Generic page section ---------- */
.page-section { padding: 60px 0 90px; }
.page-section h1 { font-size: 2.6rem; }
.page-section h2 { font-size: 1.5rem; margin-top: 34px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.price-card {
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 28px 22px;
  background: var(--white); position: relative;
}
.price-card.featured { border-color: var(--green-600); box-shadow: 0 10px 30px rgba(22,163,74,0.15); }
.price-card .badge { position: absolute; top: -12px; right: 20px; background: var(--green-600); color: #fff; font-size: 0.75rem; padding: 4px 10px; border-radius: 999px; font-weight: 700; }
.price-card h3 { margin: 0 0 6px; }
.price-card .price { font-size: 2.2rem; font-weight: 800; margin-bottom: 18px; }
.price-card .price span { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; }
.price-card li { padding: 7px 0; border-top: 1px dashed var(--line); font-size: 0.92rem; color: var(--graphite); }
.price-card li:first-child { border-top: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 50px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 10px; }
.footer-grid a { display: block; padding: 4px 0; color: var(--graphite); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--green-700); }

/* ---------- Auth pages ---------- */
.auth-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--paper-dim); }
.auth-card {
  width: 380px; background: var(--white); border: 1.5px solid var(--line); border-radius: 18px;
  padding: 34px 30px; box-shadow: var(--shadow-soft);
}
.auth-card h1 { font-size: 1.8rem; margin: 14px 0 4px; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; margin: 20px 0; }
.auth-card label { font-size: 0.85rem; font-weight: 600; color: var(--graphite); display: flex; flex-direction: column; gap: 6px; }
.auth-card input {
  font-family: var(--font-body); font-size: 0.95rem; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 8px; outline: none;
}
.auth-card input:focus { border-color: var(--green-600); }
.form-error { color: #dc2626; font-size: 0.85rem; min-height: 1em; }
.form-success { color: var(--green-700); font-size: 0.85rem; min-height: 1em; }
.admin-auth { background: #10120f; }
.admin-auth .auth-card { background: #171a15; border-color: #2a2f27; color: #eee; }
.admin-auth input { background: #10120f; border-color: #2a2f27; color: #eee; }
.tag { font-size: 0.7rem; background: var(--green-600); color: #fff; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2.8rem; }
}
@media (max-width: 560px) {
  .feature-grid, .pricing-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
}
