/* ============================================================
   Factus Labs — refined editorial stylesheet
   Warm paper, serif display, steel-blue + gold brand accents.
   ============================================================ */

:root {
  --paper:      #f7f7f5;
  --paper-2:    #eeeeeb;
  --paper-3:    #e6e6e2;
  --ink:        #101215;
  --ink-soft:   #4a4f57;
  --muted:      #7c828b;
  --rule:       #dcdcd6;
  --rule-soft:  #e7e7e2;

  --blue:       #2c6f96;
  --blue-deep:  #1f5473;
  --blue-wash:  #e8f0f5;
  --gold:       #b08d3f;
  --gold-wash:  #f5efe1;

  --dark:       #0b0c0e;

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", Arial, sans-serif;

  --max: 1180px;
  --gutter: 32px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--blue-wash); color: var(--blue-deep); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.018em;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); line-height: 1.07; }
h2 { font-size: clamp(1.65rem, 3.1vw, 2.4rem); line-height: 1.16; }
h3 { font-size: 1.2rem; line-height: 1.32; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}

.eyebrow.gold { color: var(--gold); }

.lede {
  font-size: clamp(1.04rem, 1.5vw, 1.18rem);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 56ch;
}

.small { font-size: 0.86rem; color: var(--muted); }

/* ---------- Logo mark ---------- */

.logo-mark {
  width: 34px;
  height: 34px;
  background: var(--dark);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.logo-mark svg { width: 17px; height: 17px; display: block; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 247, 245, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 76px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.87rem;
}

.nav a {
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 13px 24px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: var(--blue); border-color: var(--blue); }

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

.btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: #9a7a34; border-color: #9a7a34; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink); }

.btn .arrow { transition: transform 0.16s ease; }
.btn:hover .arrow { transform: translateX(3px); }

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

.hero { padding: 96px 0 84px; }

.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.hero h1 { margin-bottom: 26px; }
.hero h1 em { font-style: italic; color: var(--blue); }
.hero .lede { margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Brand panel — stands in for the logo artwork */

.brand-panel {
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  padding: 56px 44px;
  text-align: center;
}

.brand-panel .mark {
  width: 62px;
  height: 62px;
  background: var(--dark);
  display: grid;
  place-items: center;
  margin: 0 auto 26px;
}

.brand-panel .mark svg { width: 30px; height: 30px; }

.brand-panel .name {
  font-family: var(--sans);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(100deg, #2c6f96 0%, #6fb3d8 55%, #2c6f96 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.brand-panel .tagline {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-panel .social {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Sections ---------- */

section { padding: 82px 0; }

.section-head { max-width: 700px; margin-bottom: 50px; }
.section-head p { color: var(--ink-soft); margin: 0; }

.section-head.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: none;
  align-items: end;
}

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ---------- Numbered list ---------- */

.list { border-top: 1px solid var(--rule); }

.list-item {
  display: grid;
  grid-template-columns: 60px 1fr 1.15fr;
  gap: 32px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule-soft);
  transition: background 0.16s ease;
}

.list-item:hover { background: var(--paper-2); }

.list-num {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--blue);
  padding-top: 6px;
}

.list-item h3 { padding-top: 2px; }

.list-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  max-width: 54ch;
}

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

.cards {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
}

.card { background: var(--paper); padding: 32px 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }

.card .tag {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 16px;
}

/* ---------- Process ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid var(--rule);
}

.process-step { padding: 30px 28px 30px 0; border-right: 1px solid var(--rule-soft); }
.process-step:last-child { border-right: 0; }

.process-step .n {
  font-family: var(--serif);
  font-size: 1.85rem;
  color: var(--rule);
  line-height: 1;
  margin-bottom: 16px;
}

.process-step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.process-step p { font-size: 0.91rem; color: var(--ink-soft); margin: 0; }

/* ---------- Work / image panels ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.work {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  transition: border-color 0.18s ease;
}

.work:hover { border-color: var(--rule); }

.work::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(44, 111, 150, 0.07), rgba(16, 18, 21, 0.05));
  pointer-events: none;
}

.work span {
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(247, 247, 245, 0.88);
  padding: 5px 10px;
  backdrop-filter: blur(4px);
}

.work.wide  { grid-column: span 4; }
.work.half  { grid-column: span 3; }
.work.third { grid-column: span 2; }

/* ---------- Products ---------- */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.product { display: flex; flex-direction: column; }

.product .shot {
  aspect-ratio: 1 / 1;
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.product .shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(44, 111, 150, 0.06), rgba(16, 18, 21, 0.04));
}

.product .shot span {
  position: relative;
  z-index: 1;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(247, 247, 245, 0.9);
  padding: 4px 8px;
}

.product h3 { margin-bottom: 8px; }

.product p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0 0 18px;
  flex: 1;
}

.product .btn { align-self: flex-start; padding: 10px 18px; font-size: 0.8rem; }

.product.soon .shot { border-style: dashed; }
.product.soon h3 { color: var(--muted); }

/* ---------- Feature / quote ---------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.quote {
  font-family: var(--serif);
  font-size: clamp(1.28rem, 2.1vw, 1.62rem);
  line-height: 1.46;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}

.quote-attr { font-size: 0.84rem; color: var(--muted); }

/* ---------- Status band ---------- */

.status {
  background: var(--paper-3);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 44px 0;
}

.status-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
}

.status h3 {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

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

/* ---------- CTA band ---------- */

.cta {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  padding: 70px 0;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}

.cta h2 { margin-bottom: 10px; }
.cta p { color: var(--ink-soft); margin: 0; max-width: 46ch; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: start;
}

form { display: grid; gap: 22px; }

.field label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

input, textarea, select {
  width: 100%;
  padding: 13px 2px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  border-radius: 0;
  transition: border-color 0.16s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-bottom-color: var(--blue);
}

textarea { min-height: 118px; resize: vertical; }
select { appearance: none; cursor: pointer; }

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }

.info-list li { border-top: 1px solid var(--rule-soft); padding-top: 14px; }

.info-list strong {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.info-list a { border-bottom: 1px solid var(--rule); }
.info-list a:hover { border-bottom-color: var(--blue); }

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

.site-footer {
  background: var(--dark);
  color: #9aa0a8;
  padding: 56px 0 44px;
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 26px;
  border-bottom: 1px solid #1e2024;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: #9aa0a8; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 0.8rem;
  color: #6f757d;
}

.site-footer .logo-mark { background: #fff; }
.site-footer .logo-mark svg path { fill: var(--dark); }

/* ---------- Draft banner (hidden pages) ---------- */

.draft-banner {
  background: var(--gold-wash);
  border-bottom: 1px solid #e3d6b8;
  color: #6f5a22;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 10px 0;
}

.draft-banner .wrap { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- Feature definition list ---------- */

.feature-list { border-top: 1px solid var(--rule); }

.feature-list .row {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 36px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.feature-list dt {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.feature-list dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px 32px;
}

.bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 1px;
  background: var(--blue);
}

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

.tiers { border-top: 1px solid var(--rule); }

.tier {
  display: grid;
  grid-template-columns: 200px 1fr 130px;
  gap: 40px;
  padding: 34px 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: start;
  transition: background 0.16s ease;
}

.tier:hover { background: var(--paper-2); }

.tier .num {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--rule);
  margin-bottom: 8px;
}

.tier h3 { margin-bottom: 4px; }

.tier .price {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blue);
  text-align: right;
  white-space: nowrap;
  padding-top: 4px;
}

.tier .price small {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.tier .spec-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 16px 0 4px;
}

.tier .spec-label:first-child { margin-top: 0; }

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

/* ---------- Spec comparison table ---------- */

.spec-wrap { overflow-x: auto; }

.spec-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.spec-table thead th {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 0 16px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: bottom;
}

.spec-table thead th:first-child { padding-left: 0; }

.spec-table tbody th {
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
  width: 24%;
  color: var(--ink);
}

.spec-table tbody td {
  padding: 16px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
  color: var(--ink-soft);
}

.spec-table tbody td.highlight {
  background: var(--blue-wash);
  color: var(--ink);
}

.spec-table tbody td em {
  display: block;
  font-style: italic;
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 3px;
}

/* ---------- Tier selector card ---------- */

.selector {
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  padding: 52px 40px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.selector h2 { margin-bottom: 12px; }
.selector p { color: var(--ink-soft); margin-bottom: 8px; }
.selector .note {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 26px;
}

/* ---------- Brand assets ---------- */

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.site-footer .logo-img { height: 30px; }

.hero-banner {
  width: 100%;
  height: auto;
  display: block;
}

/* The hero panel now holds the real banner artwork, so drop the frame */
.brand-panel {
  padding: 0;
  background: none;
  border: 0;
}

.page-banner { padding: 30px 0 0; }

.page-banner img {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .tier { grid-template-columns: 1fr; gap: 14px; }
  .tier .price { text-align: left; }
  .feature-list .row { grid-template-columns: 1fr; gap: 6px; }
  .selector { padding: 40px 24px; }

  .hero-split { grid-template-columns: 1fr; gap: 44px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .section-head.split { grid-template-columns: 1fr; gap: 18px; }
  .list-item { grid-template-columns: 44px 1fr; gap: 20px; }
  .list-item p { grid-column: 2; }
  .work.wide, .work.half, .work.third { grid-column: span 3; }
  .process-step { border-right: 0; border-bottom: 1px solid var(--rule-soft); padding-right: 0; }
  .status-inner { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .nav { display: none; }
  .hero { padding: 60px 0 52px; }
  section { padding: 58px 0; }
  .work.wide, .work.half, .work.third { grid-column: span 6; }
  .header-inner { height: 66px; }
  .cta { padding: 50px 0; }
  .brand-panel { padding: 40px 26px; }
}
