/* ============================================================
   GREYGUARDS  ·  v3 site styles
   Design system v2.0 — forest / bone / crimson, IBM Plex Mono
   ============================================================ */

/* ---------- Web fonts (Google Fonts) ---------- */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;1,400&display=swap');

/* ---------- Tokens ---------- */
:root {
  --forest:        #24342C;
  --forest-dark:   #18241E;
  --bone:          #E8E2D5;
  --bone-soft:     #EDE8DC;
  --bone-edge:     #D8D2C5;
  --graphite:      #2C2E33;
  --warm-grey:     #9E968A;
  --crimson:       #C8321E;
  --crimson-deep:  #A82A18;
  --muted:         #7A7468;
  --muted-light:   #B8B2A6;

  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --w-max: 1280px;
  --w-prose: 720px;
  --gutter: clamp(24px, 4vw, 80px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  color: var(--graphite);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout primitives ---------- */
.wrap { max-width: var(--w-max); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--w-prose); }

.section { padding: clamp(64px, 9vw, 128px) 0; }

.section--forest {
  background: var(--forest);
  color: var(--bone);
}
.section--forest-dark {
  background: var(--forest-dark);
  color: var(--bone);
}
.section--bone {
  background: var(--bone);
  color: var(--graphite);
}
.section--bone-soft {
  background: var(--bone-soft);
  color: var(--graphite);
}

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--crimson);
  margin: 0 0 24px;
}
.section--forest .eyebrow,
.section--forest-dark .eyebrow { color: var(--crimson); }

h1, h2, h3, h4 {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 24px;
}
h1 { font-size: clamp(36px, 5.4vw, 68px); }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: clamp(18px, 1.6vw, 22px); }
h4 { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--crimson); font-weight: 500; margin-bottom: 12px; }

p { margin: 0 0 18px; }
.lede { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: inherit; }
.italic-quote { font-family: Georgia, 'Times New Roman', serif; font-style: italic; }

.rule {
  height: 1px;
  background: currentColor;
  opacity: 0.18;
  margin: 56px 0;
  border: 0;
}

/* ---------- Nav ---------- */
.nav {
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--forest);
  color: var(--bone);
  border-bottom: 1px solid rgba(232,226,213,0.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.2em;
}
.nav__brand::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  background: var(--crimson);
}
.nav__brand svg { width: 32px; height: 32px; }
.nav__links {
  display: flex;
  gap: 36px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nav__links a {
  opacity: 0.7;
  transition: opacity .15s ease, color .15s ease;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  opacity: 1;
  color: var(--crimson);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 14vw, 180px) 0 clamp(80px, 12vw, 140px);
}
.hero--forest { background: var(--forest); color: var(--bone); }
.hero--bone   { background: var(--bone);   color: var(--graphite); }

.hero__classification {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid currentColor;
  opacity: 0.75;
  margin-bottom: 40px;
}
.hero h1 {
  max-width: 920px;
}
.hero__sub {
  max-width: 640px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  margin-top: 24px;
  opacity: 0.85;
}
.hero__mark {
  position: absolute;
  right: clamp(-80px, -3vw, -20px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 30vw, 440px);
  opacity: 0.12;
  pointer-events: none;
}
@media (max-width: 760px) {
  .hero__mark { display: none; }
}

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--bone-edge);
  border: 1px solid var(--bone-edge);
}
.stat {
  background: var(--bone);
  padding: 48px 32px;
}
.stat__num {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 500;
  color: var(--crimson);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1;
}
.stat__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 880px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Capability grid (2x2) ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.cap {
  background: var(--bone-soft);
  border: 1px solid var(--bone-edge);
  padding: 40px 36px;
  position: relative;
}
.cap::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 48px; height: 3px;
  background: var(--crimson);
}
.cap h3 {
  font-size: 22px;
  margin-bottom: 4px;
}
.cap__layer {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.cap p { margin: 0; color: var(--graphite); }
@media (max-width: 760px) { .cap-grid { grid-template-columns: 1fr; } }

/* ---------- 5-step flow ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 56px;
  border-left: 1px solid rgba(232,226,213,0.18);
}
.flow__step {
  padding: 32px 28px;
  border-right: 1px solid rgba(232,226,213,0.18);
  position: relative;
}
.flow__num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--crimson);
  margin-bottom: 16px;
  font-weight: 500;
}
.flow__layer {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 12px;
}
.flow__title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--bone);
}
.flow__body {
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.78;
  margin: 0;
}
@media (max-width: 980px) {
  .flow { grid-template-columns: repeat(2, 1fr); border-left: 0; }
  .flow__step { border-bottom: 1px solid rgba(232,226,213,0.12); }
}
@media (max-width: 520px) {
  .flow { grid-template-columns: 1fr; }
}

/* ---------- Quote divider (forest mist) ---------- */
.mist {
  position: relative;
  background: var(--forest-dark);
  color: var(--bone);
  padding: clamp(80px, 11vw, 160px) 0;
  overflow: hidden;
  text-align: center;
}
.mist__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(232,226,213,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.mist blockquote {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.35;
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  letter-spacing: -0.005em;
}
.mist cite {
  display: block;
  margin-top: 32px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crimson);
}

/* ---------- Entry-point cards ---------- */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.entry {
  background: var(--bone);
  border: 1px solid var(--bone-edge);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}
.entry__tag {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 16px;
}
.entry h3 {
  font-size: 24px;
  margin-bottom: 6px;
}
.entry__price {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}
.entry p { color: var(--graphite); }
.entry__cta {
  margin-top: auto;
  padding-top: 24px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson);
}
.entry__cta::after { content: "  →"; }
@media (max-width: 760px) { .entry-grid { grid-template-columns: 1fr; } }

/* ---------- Tier table (services) ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--bone-edge);
  border: 1px solid var(--bone-edge);
}
.tier {
  background: var(--bone);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
}
.tier__band {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.tier__name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.tier__price {
  font-size: 15px;
  color: var(--crimson);
  margin-bottom: 24px;
  font-weight: 500;
}
.tier ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--graphite);
}
.tier ul li::before {
  content: "·  ";
  color: var(--crimson);
}
@media (max-width: 980px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tiers { grid-template-columns: 1fr; } }

/* ---------- Comparison table ---------- */
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.compare th, .compare td {
  text-align: left;
  padding: 18px 20px;
  border-bottom: 1px solid var(--bone-edge);
}
.compare th {
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
  background: var(--bone-soft);
}
.compare th.is-us, .compare td.is-us {
  background: var(--graphite);
  color: var(--bone);
}
.compare th.is-us { color: var(--crimson); }
.compare .yes  { color: var(--crimson); font-weight: 500; }
.compare .part { color: var(--muted); }
.compare .no   { color: var(--bone-edge); }

/* ---------- About — pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.pillar {
  border-top: 2px solid var(--crimson);
  padding-top: 20px;
}
.pillar h3 {
  font-size: 16px;
  margin-bottom: 12px;
}
.pillar p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--graphite);
}
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Forest network strip ---------- */
.network {
  background: var(--forest);
  color: var(--bone);
  padding: clamp(64px, 8vw, 100px) 0;
}
.network__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.network h2 { color: var(--bone); }
.network p { opacity: 0.85; }
@media (max-width: 880px) { .network__grid { grid-template-columns: 1fr; } }

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 96px);
}
.field {
  display: block;
  margin-bottom: 22px;
}
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--graphite);
  background: var(--bone);
  border: 1px solid var(--bone-edge);
  padding: 14px 16px;
  outline: none;
  transition: border-color .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--crimson);
}
.field textarea { min-height: 140px; resize: vertical; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 28px;
  background: var(--crimson);
  color: var(--bone);
  border: 1px solid var(--crimson);
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--crimson-deep); border-color: var(--crimson-deep); }
.btn--ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--bone);
}
.btn--ghost:hover { background: var(--bone); color: var(--forest); }
.btn--ghost-forest {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn--ghost-forest:hover { background: var(--forest); color: var(--bone); }

.contact-meta dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-meta dd {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--graphite);
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- CTA section ---------- */
.cta {
  background: var(--forest);
  color: var(--bone);
  padding: clamp(80px, 10vw, 140px) 0;
  text-align: center;
}
.cta h2 {
  max-width: 820px;
  margin: 0 auto 36px;
}
.cta__sub {
  max-width: 580px;
  margin: 0 auto 40px;
  opacity: 0.85;
}

/* ---------- Footer ---------- */
.foot {
  background: var(--forest-dark);
  color: var(--bone);
  padding: 64px 0 40px;
  font-size: 12px;
  line-height: 1.7;
}
.foot__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.foot h5 {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--crimson);
  margin: 0 0 16px;
  font-weight: 500;
}
.foot a { opacity: 0.7; transition: opacity .15s ease; }
.foot a:hover { opacity: 1; color: var(--crimson); }
.foot__bar {
  border-top: 1px solid rgba(232,226,213,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
}
@media (max-width: 760px) {
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav__links { gap: 18px; }
  .nav__links a { font-size: 10px; }
}
@media (max-width: 480px) {
  .foot__grid { grid-template-columns: 1fr; }
}

/* ---------- Logo image ---------- */
img.logo-img {
  height: 36px !important;
  width: auto !important;
  max-width: 100px !important;
  max-height: 40px !important;
  display: block !important;
  object-fit: contain !important;
}
.nav__brand img.logo-img { height: 32px !important; max-height: 36px !important; }
.foot img.logo-img { height: 32px !important; max-height: 36px !important; }

/* ---------- Image placeholders ---------- */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  background: var(--graphite);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  padding: 60px 40px;
  border: 1px dashed var(--warm-grey);
  min-height: 280px;
}
.img-placeholder small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--muted-light);
  margin-top: 6px;
  font-weight: 400;
}
.img-placeholder--band {
  min-height: 280px;
  width: 100%;
}
.img-placeholder--hero {
  min-height: 380px;
  height: 100%;
}

/* ---------- IN DEVELOPMENT badge ---------- */
.badge-dev {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(200, 50, 30, 0.12);
  color: var(--crimson);
  border: 1px solid rgba(200, 50, 30, 0.4);
  margin-bottom: 16px;
}
.section--forest .badge-dev {
  background: rgba(200, 50, 30, 0.18);
  border-color: rgba(200, 50, 30, 0.5);
}

/* ---------- App showcase cards ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.app-card {
  background: var(--graphite);
  color: var(--bone);
  position: relative;
  border: 1px solid rgba(232,226,213,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
  text-decoration: none;
}
.app-card:hover {
  border-color: var(--crimson);
  transform: translateY(-2px);
}
.app-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 60px; height: 3px;
  background: var(--crimson);
  z-index: 2;
}

/* Image area at the top */
.app-card__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #1c1d20;
  border-bottom: 1px solid rgba(232,226,213,0.06);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 24px;
  overflow: hidden;
}
.app-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.app-card__media-placeholder {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-light);
  border: 1px dashed rgba(232,226,213,0.18);
  padding: 24px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}
.app-card__media-placeholder small {
  font-size: 9px;
  letter-spacing: 0.18em;
  opacity: 0.6;
  font-weight: 400;
}

/* Live indicator */
.app-card__live {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
  background: rgba(0,0,0,0.45);
  padding: 5px 9px;
  z-index: 3;
}
.app-card__live::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74,222,128,0.6);
}

/* Body of card */
.app-card__body {
  padding: 32px 36px 36px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.app-card__tag {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 14px;
}
.app-card h3 {
  font-size: 26px;
  color: var(--bone);
  margin-bottom: 14px;
}
.app-card__lede {
  color: var(--bone);
  opacity: 0.82;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.app-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  border-top: 1px solid rgba(232,226,213,0.08);
  padding-top: 20px;
}
.app-card__features li {
  font-size: 12px;
  line-height: 1.5;
  color: var(--bone);
  opacity: 0.7;
  padding: 4px 0;
  display: flex;
  gap: 10px;
}
.app-card__features li::before {
  content: "—";
  color: var(--crimson);
  flex-shrink: 0;
}
.app-card__cta {
  margin-top: auto;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--crimson);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.app-card__cta::after { content: "  →"; transition: transform .2s ease; }
.app-card:hover .app-card__cta::after { transform: translateX(4px); }

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

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 32px; }
.mt-l { margin-top: 56px; }
.mb-0 { margin-bottom: 0; }
