:root {
  --wood: #b07a4a;
  --wood-light: #e9d6c1;
  --wood-soft: #f6efe7;
  --graphite: #1f2328;
  --graphite-2: #2b3036;
  --muted: #6c727a;
}

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--graphite);
  background: #fff;
}

.text-wood { color: var(--wood) !important; }
.bg-wood-soft { background: var(--wood-soft); }
.bg-graphite { background: var(--graphite); }

.btn-wood {
  background: var(--wood);
  border-color: var(--wood);
  color: #fff;
}
.btn-wood:hover, .btn-wood:focus {
  background: #95633a;
  border-color: #95633a;
  color: #fff;
}

/* Navbar */
.navbar-brand .logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--wood), #7a4f2c);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800;
}

/* Hero */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(176,122,74,.35), transparent 60%),
    linear-gradient(180deg, var(--graphite) 0%, var(--graphite-2) 100%);
  color: #fff;
  padding: 7rem 0 5rem;
}
.hero .eyebrow {
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--wood-light);
}
.hero h1 { font-weight: 800; line-height: 1.1; }
.hero .lead { color: rgba(255,255,255,.75); }

/* Mock app window */
.app-window {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  overflow: hidden;
  color: var(--graphite);
}
.app-window .titlebar {
  background: #f1f2f4;
  padding: .55rem .9rem;
  display: flex; gap: .4rem; align-items: center;
}
.app-window .dot { width: 11px; height: 11px; border-radius: 50%; }
.app-window .sidebar {
  background: var(--wood-soft);
  font-size: .82rem;
}
.app-window .sidebar .nav-link {
  color: var(--graphite);
  padding: .4rem .75rem;
  border-radius: 8px;
}
.app-window .sidebar .nav-link.active {
  background: var(--wood);
  color: #fff;
}
.kpi {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: .6rem .75rem;
}
.kpi .v { font-weight: 800; font-size: 1.15rem; }
.kpi .l { font-size: .72rem; color: var(--muted); }

.kanban-col {
  background: #f7f7f8;
  border-radius: 10px;
  padding: .5rem;
  font-size: .75rem;
  min-height: 100%;
}
.kanban-col .head { font-weight: 700; color: var(--muted); margin-bottom: .35rem; }
.kanban-card {
  background: #fff;
  border-radius: 8px;
  padding: .45rem .5rem;
  margin-bottom: .4rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.kanban-card .bar { height: 3px; border-radius: 2px; margin-top: .35rem; background: #eee; }
.kanban-card .bar span { display: block; height: 100%; border-radius: 2px; background: var(--wood); }

/* Sections */
section { padding: 5.5rem 0; }
.section-title { font-weight: 800; }
.section-sub { color: var(--muted); max-width: 680px; }

/* Pipeline */
.pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}
.pipeline .step {
  flex: 1 1 120px;
  max-width: 150px;
  text-align: center;
  position: relative;
}
.pipeline .step .ic {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: #fff;
  border: 2px solid var(--wood-light);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--wood);
  margin-bottom: .6rem;
}
.pipeline .step small { color: var(--muted); }

/* Feature cards */
.feature-card {
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 1.75rem;
  height: 100%;
  transition: transform .2s, box-shadow .2s;
  background: #fff;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(31,35,40,.08);
}
.feature-card .ic {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--wood-soft);
  color: var(--wood);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.feature-card ul { padding-left: 1.1rem; color: var(--muted); font-size: .92rem; margin-bottom: 0; }

/* Mini mock blocks inside feature showcases */
.mock {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(31,35,40,.10);
  padding: 1.25rem;
  font-size: .85rem;
}
.mock .row-line {
  display: flex; justify-content: space-between;
  padding: .45rem 0;
  border-bottom: 1px dashed #e7e7e7;
}
.mock .row-line:last-child { border-bottom: 0; }
.ai-variant {
  border-radius: 10px;
  aspect-ratio: 4/3;
  display: flex; align-items: flex-end;
  padding: .5rem;
  color: #fff; font-weight: 600; font-size: .75rem;
}
.ai-v1 { background: linear-gradient(135deg, #c9a27e, #6e4a2c); }
.ai-v2 { background: linear-gradient(135deg, #d9dde2, #59626d); }
.ai-v3 { background: linear-gradient(135deg, #e8e1d6, #9a8b72); }
.ai-v4 { background: linear-gradient(135deg, #7f8c74, #3b4535); }

/* Roles */
.role-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #eadfd2;
  margin: .3rem;
  font-weight: 600;
}
.role-chip i { color: var(--wood); }

/* Offer list */
.offer-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.offer-item .num {
  font-weight: 800; color: var(--wood);
  font-size: 1.3rem; min-width: 2rem;
}

/* Form */
.reg-card {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(31,35,40,.12);
}
.form-control:focus, .form-select:focus {
  border-color: var(--wood);
  box-shadow: 0 0 0 .2rem rgba(176,122,74,.2);
}

footer { color: rgba(255,255,255,.6); }

/* ===== Modules (13 subsystems) ===== */
.module-group-title {
  display: flex; align-items: center; gap: .75rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: .9rem;
}
.module-group-title::after { content: ""; flex: 1; height: 1px; background: #eee; }
.module-card {
  border: 1px solid #eee; border-radius: 14px;
  padding: 1.2rem; height: 100%; background: #fff;
  transition: transform .2s, box-shadow .2s;
}
.module-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(31,35,40,.08); }
.module-card i { font-size: 1.4rem; color: var(--wood); display: inline-block; margin-bottom: .5rem; }
.module-card h6 { font-weight: 800; margin-bottom: .35rem; }
.module-card p { font-size: .85rem; color: var(--muted); margin-bottom: 0; }
.module-card.accent { border-color: var(--wood); background: var(--wood-soft); }
.module-card.future { border-style: dashed; background: #fcfbf9; }

/* ===== AI vs Engineering Core ===== */
.core-card {
  height: 100%; border-radius: 18px; padding: 1.75rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
}
.core-card-eng { border-color: var(--wood); background: rgba(176,122,74,.10); }
.core-list { list-style: none; padding: 0; margin: 0; }
.core-list li { padding: .45rem 0 .45rem 1.6rem; position: relative; border-bottom: 1px solid rgba(255,255,255,.07); }
.core-list li:last-child { border-bottom: 0; }
.core-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--wood); }
.core-arrow {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wood); color: #fff; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 991px) { .core-arrow { transform: rotate(90deg); } }

.prelim {
  background: #fff8ec; border: 1px solid #f3dfb8;
  border-radius: 10px; padding: .7rem .85rem; font-size: .85rem;
}

/* ===== Phone mockups ===== */
.phone {
  width: 270px; border-radius: 36px; padding: 12px;
  background: var(--graphite);
  box-shadow: 0 25px 60px rgba(31,35,40,.25);
  position: relative;
}
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 20px; background: var(--graphite);
  border-radius: 0 0 14px 14px; z-index: 2;
}
.phone-screen {
  background: #fff; border-radius: 26px;
  padding: 2rem .9rem 1rem; min-height: 470px; font-size: .78rem;
}
.ph-photo {
  aspect-ratio: 1; border-radius: 8px;
  background: linear-gradient(135deg, #c9a27e, #6e4a2c);
}
.ph-add {
  background: var(--wood-soft); color: var(--wood);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.ph-field {
  display: flex; justify-content: space-between;
  padding: .45rem .55rem; margin-bottom: .3rem;
  background: #f7f7f8; border-radius: 8px;
}
.ph-note { background: var(--wood-soft); border-radius: 8px; padding: .45rem .55rem; margin: .5rem 0; }
.ph-btn {
  background: var(--wood); color: #fff; text-align: center;
  border-radius: 10px; padding: .55rem; font-weight: 700;
}
.ph-chip { font-size: .68rem; padding: .2rem .45rem; border-radius: 999px; background: #f1f2f4; }
.ph-chip.ok { background: #e6f4ea; color: #1e7b3c; }
.ph-steps > div {
  position: relative; padding: .3rem 0 .3rem 1.3rem; color: var(--muted);
}
.ph-steps > div::before {
  content: ""; position: absolute; left: 3px; top: .55rem;
  width: 9px; height: 9px; border-radius: 50%; background: #ddd;
}
.ph-steps > div.done { color: var(--graphite); }
.ph-steps > div.done::before { background: #28a745; }
.ph-steps > div.now { color: var(--wood); font-weight: 700; }
.ph-steps > div.now::before { background: var(--wood); box-shadow: 0 0 0 3px rgba(176,122,74,.25); }

/* ===== Plan-fact ===== */
.pf-table th { font-size: .75rem; color: var(--muted); font-weight: 600; }

/* ===== Roles ===== */
.role-group {
  background: #fff; border: 1px solid #eadfd2; border-radius: 14px;
  padding: 1.1rem 1.25rem; height: 100%;
}
.role-group .rg-title { font-weight: 800; margin-bottom: .6rem; }
.role-group .rg-title i { color: var(--wood); margin-right: .3rem; }
.role-group > div:not(.rg-title) { font-size: .9rem; color: var(--muted); padding: .15rem 0; }

/* ===== Roadmap ===== */
.roadmap { position: relative; padding-left: .5rem; }
.roadmap::before {
  content: ""; position: absolute; left: 26px; top: 10px; bottom: 10px;
  width: 2px; background: var(--wood-light);
}
.rm-item { display: flex; gap: 1.1rem; padding: .7rem 0; position: relative; }
.rm-num {
  flex: 0 0 38px; height: 38px; border-radius: 50%;
  background: #fff; border: 2px solid var(--wood-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--wood); z-index: 1;
}
.rm-item h6 { font-weight: 800; margin-bottom: .15rem; }
.rm-item p { color: var(--muted); font-size: .88rem; margin-bottom: 0; }
.rm-item.current .rm-num { background: var(--wood); border-color: var(--wood); color: #fff; }


/* ===== Pricing ===== */
.billing-toggle { background: #fff; border-radius: 999px; padding: 4px; border: 1px solid #eadfd2; }
.billing-toggle button { border: 0; background: transparent; padding: .45rem 1.1rem; border-radius: 999px; font-weight: 600; color: var(--muted); }
.billing-toggle button.active { background: var(--graphite); color: #fff; }
.plan {
  position: relative; height: 100%; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #eadfd2; border-radius: 18px; padding: 1.6rem 1.4rem;
}
.plan-hot { border: 2px solid var(--wood); box-shadow: 0 20px 50px rgba(176,122,74,.18); }
.plan-dark { background: var(--graphite); color: #fff; border-color: var(--graphite); }
.plan-dark .plan-for, .plan-dark .plan-year, .plan-dark .plan-no, .plan-dark .plan-inc { color: rgba(255,255,255,.6) !important; }
.plan-dark .plan-limits span { background: rgba(255,255,255,.08); color: #fff; }
.plan-ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--wood); color: #fff; font-size: .75rem; font-weight: 700;
  padding: .2rem .8rem; border-radius: 999px; white-space: nowrap;
}
.plan-name { font-weight: 800; letter-spacing: .08em; font-size: .9rem; color: var(--wood); }
.plan-for { font-size: .85rem; color: var(--muted); min-height: 2.6em; margin-top: .2rem; }
.plan-price { font-size: 2rem; font-weight: 800; margin-top: .6rem; line-height: 1.1; }
.plan-price small { font-size: .85rem; font-weight: 600; color: var(--muted); }
.plan-year { font-size: .78rem; color: var(--muted); min-height: 1.3em; margin-bottom: .8rem; }
.plan-limits { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }
.plan-limits span { font-size: .75rem; font-weight: 700; background: var(--wood-soft); border-radius: 8px; padding: .25rem .5rem; }
.plan-inc { font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: .4rem; }
.plan-list { list-style: none; padding: 0; margin: 0 0 1rem; font-size: .86rem; }
.plan-list li { padding: .3rem 0 .3rem 1.5rem; position: relative; }
.plan-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--wood); }
.plan-no { font-size: .76rem; color: var(--muted); border-top: 1px dashed #e5ddd2; padding-top: .7rem; margin-bottom: 1rem; }
.panel-lite { background: #fff; border-radius: 18px; padding: 1.5rem; border: 1px solid #eadfd2; }
.addons td { font-size: .9rem; padding: .5rem .25rem; }
.addons td i { color: var(--wood); margin-right: .4rem; }
.addons td.text-end { font-weight: 700; white-space: nowrap; }
.terms { list-style: none; padding: 0; margin: 0; }
.terms li { padding: .5rem 0; display: flex; gap: .6rem; font-size: .92rem; }
.terms li i { color: var(--wood); }

/* ===== Pilot ===== */
.pilot { background: linear-gradient(135deg, #2b3036, #1f2328); }
.pilot-card {
  display: flex; align-items: center; gap: .8rem; height: 100%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 1rem 1.1rem; color: #fff;
}
.pilot-card i { font-size: 1.5rem; color: var(--wood); }
