/* ============================================================
   Juvan Lab — ochre & oak theme, serif display headings
   Theme variables: edit these to retheme the whole site.
   ============================================================ */
:root {
  color-scheme: light;
  --ink: #3d2a14;          /* dark oak */
  --ink-soft: #74614c;
  --accent: #7a4a21;       /* saddle brown */
  --accent-dark: #5f3917;
  --gold: #e9b44c;         /* ochre */
  --gold-tint: #f8ecd4;
  --bg: #fcfaf5;
  --bg-tint: #f4efe3;
  --bg-hero: #f0e7d2;
  --bg-footer: #271a0c;
  --border: #e2d8c4;
  --card: #ffffff;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(61, 42, 20, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Serif display headings — this site's signature */
h1, h2 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h2 { font-size: 2.1rem; margin-bottom: 12px; }
h3, h4 { line-height: 1.25; font-weight: 700; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--accent-dark); border: 1.5px solid var(--accent); }
.btn-ghost:hover { background: var(--gold-tint); }
.btn-light { background: var(--gold); color: var(--ink); font-weight: 700; }  /* ochre pop on dark CTA */
.btn-light:hover { background: #dfa636; }
.btn-sm { padding: 9px 20px; font-size: 0.9rem; }

/* ============ Nav ============ */
.nav {
  background: rgba(252, 250, 245, 0.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); }

/* ============ Hero ============ */
.hero {
  background:
    /* woven check — two perpendicular wide stripes, very faint */
    repeating-linear-gradient(0deg, transparent 0, transparent 38px, rgba(122, 74, 33, 0.045) 38px, rgba(122, 74, 33, 0.045) 42px),
    repeating-linear-gradient(90deg, transparent 0, transparent 38px, rgba(122, 74, 33, 0.045) 38px, rgba(122, 74, 33, 0.045) 42px),
    var(--bg-hero);
  padding: 76px 0 96px;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero h1 { font-size: 2.7rem; margin-bottom: 18px; }
.lead { font-size: 1.08rem; color: var(--ink-soft); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.85rem; color: var(--ink-soft); font-weight: 500; }

/* ---- Hero visual: kanban migration board ---- */
.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.board-col {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
}
.board-col-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 10px;
  padding: 0 2px;
}
.col-dot { width: 9px; height: 9px; border-radius: 50%; }
.col-dot.legacy { background: #b3a18a; }
.col-dot.mapped { background: var(--gold); }
.col-dot.live { background: #4e8a52; }

.ticket {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}
.ticket-name { font-size: 0.78rem; font-weight: 700; margin-bottom: 3px; }
.ticket-meta { font-size: 0.68rem; color: var(--ink-soft); line-height: 1.45; }

.ticket-active { border-color: var(--gold); border-width: 1.5px; }
.ticket-bar {
  height: 5px;
  background: var(--gold-tint);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}
.ticket-bar i { display: block; height: 100%; background: var(--gold); border-radius: 3px; }

.ticket-done { border-left: 3px solid #4e8a52; }
.ticket-badge {
  display: inline-block;
  margin-top: 7px;
  font-size: 0.64rem;
  font-weight: 700;
  color: #38663c;
  background: #e6efe4;
  border-radius: 999px;
  padding: 2px 9px;
}

/* ============ Sections ============ */
.section { padding: 80px 0; }
.section-tint { background: var(--bg-tint); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-lead { color: var(--ink-soft); font-size: 1.06rem; max-width: 660px; margin-bottom: 44px; }

/* ============ Cards ============ */
.cards { display: grid; gap: 22px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.94rem; }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gold-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; }

/* ============ Steps ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-dark);
  background: var(--gold-tint);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.94rem; }

/* ============ Stats ============ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 44px 0; }
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.stat p { color: var(--ink-soft); font-size: 0.92rem; }

/* ============ Testimonial ============ */
.quote-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 42px;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}
.quote-card blockquote p {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.55;
  margin-bottom: 22px;
}
.quote-card footer { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.quote-card footer strong { display: block; font-size: 0.95rem; }
.quote-card footer span { color: var(--ink-soft); font-size: 0.85rem; }

/* ============ Trust badges ============ */
.trust-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.trust-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
}

/* ============ CTA (dark panel, ochre button) ============ */
.section-cta { background: var(--ink); color: #fff; padding: 80px 0; }
.cta-inner { text-align: center; max-width: 640px; }
.section-cta h2 { color: #fff; }
.section-cta p { color: rgba(255, 255, 255, 0.76); margin: 12px 0 28px; }
.cta-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-form input {
  flex: 1;
  min-width: 240px;
  padding: 13px 18px;
  border-radius: var(--radius);
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}
.cta-form input:focus { outline: 3px solid rgba(233, 180, 76, 0.55); }
.cta-confirm { font-weight: 600; color: var(--gold) !important; }

/* ============ Footer ============ */
.footer { background: var(--bg-footer); color: rgba(255, 255, 255, 0.7); padding: 56px 0 28px; }
.footer .logo { color: #fff; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand p { font-size: 0.9rem; margin-top: 12px; max-width: 280px; }
.footer-col h4 {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-col a, .footer-col span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 9px;
}
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; font-size: 0.82rem; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 { font-size: 2.2rem; }
  .cards-3, .cards-4, .steps, .stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .cards-3, .cards-4, .steps, .stats { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 64px; }
  h2 { font-size: 1.65rem; }
}
