/* ==========================================================
   FlatLine Software Solutions — site stylesheet
   ========================================================== */

:root {
  --sidebar-w: 240px;
  --bg: #ffffff;
  --bg-alt: #f7f7f8;
  --ink: #33373c;
  --ink-soft: #6a7076;
  --line: #e5e6e8;
  --accent: #ea580c;        /* orange */
  --accent-hover: #c2410c;
  --accent-soft: #ffede0;
  --sidebar-bg: #474b51;    /* machine graphite gray */
  --sidebar-ink: #c9ccd1;
  --sidebar-ink-active: #ffffff;
  --footer-bg: #474b51;
  --footer-ink: #b3b7bc;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

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

/* ---------- Left sidebar ---------- */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  padding: 32px 0;
  z-index: 100;
}

.brand {
  display: block;
  padding: 0 24px 28px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand .brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand svg { flex-shrink: 0; }

.brand .brand-name {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.brand .brand-accent { color: #fdba74; }

.brand .brand-sub {
  display: block;
  margin-top: 2px;
  color: var(--sidebar-ink);
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.nav {
  list-style: none;
  padding: 20px 12px;
  flex: 1;
}

.nav li { margin-bottom: 2px; }

.nav a {
  display: block;
  padding: 9px 14px;
  color: var(--sidebar-ink);
  text-decoration: none;
  font-size: 0.92rem;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
}

.nav a:hover {
  color: var(--sidebar-ink-active);
  background: rgba(255, 255, 255, 0.06);
}

.nav a.active {
  color: var(--sidebar-ink-active);
  background: var(--accent);
}

.nav .nav-sub a {
  padding-left: 30px;
  font-size: 0.86rem;
}

.nav-section {
  padding: 18px 14px 6px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ba0a6;
}

.sidebar-cta {
  margin: 0 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-cta a {
  display: block;
  text-align: center;
  padding: 10px 0;
  background: transparent;
  border: 1px solid var(--accent);
  color: #fdba74;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
}

.sidebar-cta a:hover {
  background: var(--accent);
  color: #fff;
}

/* ---------- Main column ---------- */

.main {
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content {
  flex: 1;
  width: 100%;
  max-width: 960px;
  padding: 64px 48px 80px;
}

/* ---------- Typography ---------- */

h1 {
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

h2 {
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 48px 0 14px;
}

h3 {
  font-size: 1.08rem;
  font-weight: 650;
  margin: 28px 0 8px;
}

p { margin-bottom: 14px; color: var(--ink); }

.lead {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

ul.checklist {
  list-style: none;
  margin: 0 0 20px;
}

ul.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--ink);
}

ul.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Buttons ---------- */

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 16px; }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent-hover); }

/* ---------- Hero ---------- */

.hero { padding-bottom: 24px; }

.hero h1 { max-width: 620px; }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 24px 0 8px;
}

.card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

a.card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.10);
  transform: translateY(-2px);
  color: var(--ink);
}

.card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card h3 { margin: 0 0 6px; }

.card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

.card .card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- Feature strip / stats ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin: 32px 0;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat .stat-num {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat .stat-label {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* ---------- Two-column feature layout ---------- */

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin: 24px 0;
}

@media (max-width: 760px) {
  .feature-split { grid-template-columns: 1fr; }
}

/* ---------- Product page details ---------- */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 28px;
  font-size: 0.92rem;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.spec-table th {
  width: 220px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-alt);
}

.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }

.badge {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent-hover);
}

/* ---------- Callout ---------- */

.callout {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 22px 26px;
  margin: 32px 0;
}

.callout p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */

.footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 40px 48px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  max-width: 960px;
}

.footer h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand svg { flex-shrink: 0; }

.footer-brand h4 { margin-bottom: 0; }

.footer p { color: var(--footer-ink); font-size: 0.88rem; margin-bottom: 8px; }

.footer ul { list-style: none; }

.footer li { margin-bottom: 7px; }

.footer a {
  color: var(--footer-ink);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer a:hover { color: #fff; }

.footer-bottom {
  max-width: 960px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: #9ba0a6;
}

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 20px 0 0;
  }

  .nav { display: flex; flex-wrap: wrap; padding: 12px; }
  .nav li { margin: 0 2px 4px 0; }
  .nav-section { display: none; }
  .nav .nav-sub a { padding-left: 14px; }
  .sidebar-cta { margin: 0 16px 16px; padding-top: 4px; border-top: none; }

  .main { margin-left: 0; }
  .content { padding: 40px 24px 56px; }
  .footer { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Forms ---------- */

.form-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  max-width: 460px;
  margin: 12px 0 24px;
}

.form-row { margin-bottom: 18px; }

.form-row label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-row input {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn-block {
  width: 100%;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
}

.btn-block:disabled { opacity: 0.6; cursor: default; }

.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 14px; }

.form-msg {
  padding: 13px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 18px;
  display: none;
}

.form-msg.show { display: block; }

.form-msg.success {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: #067647;
}

.form-msg.error {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
}

/* Success confirmation panel (replaces the form on submit) */
.confirm-panel {
  display: none;
  max-width: 460px;
  margin: 12px 0 24px;
  padding: 34px 30px;
  background: #ecfdf3;
  border: 1px solid #abefc6;
  border-radius: var(--radius);
  text-align: center;
}

.confirm-panel.show { display: block; }

.confirm-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #067647;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-panel h3 { margin: 0 0 8px; color: #05603a; }

.confirm-panel p { color: #067647; margin-bottom: 8px; }

.confirm-panel .confirm-note { font-size: 0.85rem; color: #3f8a67; }

.confirm-panel a { color: #05603a; font-weight: 600; }

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 20px;
  margin: 24px 0 12px;
  align-items: stretch;
}

.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 6px 22px rgba(234, 88, 12, 0.10);
}

.price-card .tier-tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 8px;
  min-height: 14px;
}

.price-card .tier-name {
  font-size: 1.1rem;
  font-weight: 650;
  margin-bottom: 6px;
}

.price {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2px 0;
}

.price .price-period {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.price-card .tier-desc {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 6px 0 0;
}

.price-card ul.checklist {
  margin: 18px 0 22px;
  flex: 1;
}

.price-card ul.checklist li {
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.price-card .btn { text-align: center; width: 100%; }
