/* Green Sheet Construction Data — site styles
   Sections: tokens · reset · layout · header · hero · ticker · stats
             cards · zones · features · tracking · testimonial · faq · cta · footer */

/* ---------- tokens ---------- */
:root {
  --lime: #b2dc23;
  --lime-dark: #a3cd15;
  --lime-ink: #20240a;
  --lime-deep: #48620b;
  --lime-mid: #55700e;
  --lime-tint: rgba(178, 220, 35, .18);

  --ink: #22211d;
  --ink-dark: #191a14;
  --body: #5c5a54;
  --muted: #83817a;
  --nav-ink: #3c3a36;

  --paper: #fff;
  --paper-warm: #fbfbf7;
  --paper-grey: #f6f6f1;
  --chip: #f1f0ea;

  --line: rgba(0, 0, 0, .09);
  --line-soft: rgba(0, 0, 0, .06);
  --line-dark: rgba(255, 255, 255, .12);
  --on-dark: #b7b5ac;
  --on-dark-dim: #8f8d84;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shell: 1280px;
  --gutter: 22px;
  --radius: 9px;
  --radius-lg: 14px;
}

@media (min-width: 900px) {
  :root { --gutter: 48px; }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.12;
  text-wrap: pretty;
}

p { margin: 0; text-wrap: pretty; }

ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--lime-mid); text-decoration: none; }
a:hover { color: var(--lime-deep); }

:focus-visible { outline: 2px solid var(--lime-deep); outline-offset: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- layout ---------- */
.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 52px; }
.section--grey { background: var(--paper-grey); }
.section--dark { background: var(--ink); color: var(--on-dark); }

@media (min-width: 900px) {
  .section { padding-block: 72px; }
}

.kicker {
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lime-mid);
}

.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 12px; }
.section-head p { max-width: 640px; font-size: 15.5px; }

@media (min-width: 900px) {
  .section-head { margin-bottom: 40px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}

.btn--primary { background: var(--lime); color: var(--lime-ink); }
.btn--primary:hover { background: var(--lime-dark); color: var(--lime-ink); }
.btn--primary:active { background: #94bd0f; }

.btn--outline { border-color: rgba(0, 0, 0, .14); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }

.btn--on-dark { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--on-dark:hover { border-color: #fff; color: #fff; }

.btn--ink { background: var(--lime-ink); color: #fff; }
.btn--ink:hover { background: #000; color: #fff; }

.btn--paper { background: #fff; color: var(--lime-ink); }
.btn--paper:hover { background: var(--paper-grey); color: var(--lime-ink); }

.btn--sm { min-height: 44px; padding: 11px 22px; font-size: 14.5px; }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: relative;
  z-index: 10;
  background: var(--ink-dark);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding-block: 12px;
}

.site-header__logo img { height: 28px; width: auto; }
.site-header__logo .site-header__mark { height: 40px; }

.site-nav { display: none; }

.site-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: #d5d3ca;
}

.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--lime); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.site-header__login { display: none; font-size: 14.5px; font-weight: 500; color: #d5d3ca; }
.site-header__login:hover { color: var(--lime); }

.nav-toggle {
  display: grid;
  place-items: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}

.nav-drawer {
  display: none;
  padding-bottom: 18px;
  border-top: 1px solid var(--line-dark);
}

.nav-drawer[data-open="true"] { display: block; }

.nav-drawer a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 16px;
  font-weight: 500;
  color: #d5d3ca;
}

@media (min-width: 900px) {
  .site-nav { display: flex; gap: 26px; }
  .site-header__login { display: inline; }
  .nav-toggle, .nav-drawer { display: none !important; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink-dark);
}

.hero__bg { position: absolute; inset: 0; overflow: hidden; }

.hero__bg img {
  position: absolute;
  inset: -8%;
  width: 116%;
  max-width: none;
  height: 116%;
  object-fit: cover;
  animation: kenburns 18s ease-in-out infinite alternate;
  will-change: transform;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 21, 14, .9) 0%, rgba(20, 21, 14, .7) 55%, rgba(20, 21, 14, .94) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 40px;
  padding-block: 44px 40px;
}

.hero__copy > * + * { margin-top: 18px; }

.hero__logo { width: 220px; max-width: 64%; height: auto; margin-bottom: 4px; }
@media (min-width: 900px) { .hero__logo { width: 280px; } }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(178, 220, 35, .3);
  border-radius: 999px;
  background: rgba(178, 220, 35, .14);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #cfe86b;
}

.hero h1 {
  font-size: clamp(30px, 5.2vw, 46px);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: #fff;
}

.hero__lede { font-size: clamp(15px, 1.6vw, 17px); color: #c9c7bd; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn { flex: 1 1 220px; }

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13px;
  color: var(--on-dark-dim);
}

/* staggered entrance */
.rise { animation: rise .7s ease-out both; }
.rise--1 { animation-delay: .1s; }
.rise--2 { animation-delay: .2s; }
.rise--3 { animation-delay: .3s; }
.rise--4 { animation-delay: .4s; }

/* ---------- app window ---------- */
.window {
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, .55);
  overflow: hidden;
}

.window--flat { box-shadow: 0 24px 60px -28px rgba(34, 33, 29, .3); border: 1px solid var(--line); }

.window__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper-warm);
}

.window__dot { width: 9px; height: 9px; border-radius: 50%; background: #e4e2da; }
.window__label { margin-left: 10px; font-size: 12px; color: var(--muted); }

.window__shot { overflow: hidden; background: #f2f2f2; }
/* oversized crops: the reset's max-width must not clamp these */
.window__shot img { width: 100%; max-width: none; height: auto; }

/* desktop screenshots are cropped to their content column */
.window__shot--dashboard { max-height: 470px; }
.window__shot--dashboard img { width: 165%; margin-left: -32%; margin-top: -26px; }

.window__shot--tracking { max-height: 400px; }
.window__shot--tracking img { width: 146%; margin-left: -23%; margin-top: -165px; }

.window__shot--mobile { max-height: 430px; }

@media (max-width: 899px) {
  /* keep the content column centred and show enough vertical context */
  .window__shot--dashboard { max-height: 420px; }
  .window__shot--dashboard img { width: 172%; margin-left: -34%; margin-top: -8px; }
  .window__shot--tracking { max-height: 380px; }
  .window__shot--tracking img { width: 152%; margin-left: -25%; margin-top: -145px; }
}

@media (max-width: 639px) {
  /* phones get the real phone screenshot for the dashboard */
  .window__shot--dashboard { max-height: 470px; }
  .window__shot--dashboard img { width: 100%; margin: 0; }
  .window__shot--tracking { max-height: 340px; }
  .window__shot--tracking img { width: 195%; margin-left: -46%; margin-top: -105px; }
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    padding-block: 76px 72px;
  }
  .hero__actions .btn { flex: 0 0 auto; }
}

/* ---------- ticker ---------- */
.ticker {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-dark);
  background: rgba(15, 16, 10, .72);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.ticker__track { display: flex; width: max-content; animation: ticker 46s linear infinite; }

.ticker__group {
  display: flex;
  gap: 48px;
  padding: 13px 24px;
  font-size: 12.5px;
  color: var(--on-dark);
  white-space: nowrap;
}

.ticker__group strong { color: var(--lime); }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.stats > div { padding: 20px 18px; background: #fff; }
.stats dt { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--lime-deep); }
.stats dd { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, 1fr); gap: 32px; padding-inline: var(--gutter); background: none; border-block: 0; }
  .stats > div { padding: 38px 0; }
  .stats dd { font-size: 13.5px; }
}

/* ---------- card grids ---------- */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .grid { gap: 22px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}

.card:hover { border-color: var(--lime); box-shadow: 0 8px 24px -12px rgba(34, 33, 29, .18); }

.card__photo { height: 130px; }
.card__photo img { width: 100%; height: 100%; object-fit: cover; }

.card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px; }
.card__body h3 { font-size: 18px; font-weight: 700; }
.card__body p { flex: 1; font-size: 13.5px; }
.card__body a { font-size: 14px; font-weight: 600; }

/* ---------- zones ---------- */
.split { display: grid; gap: 32px; }

@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 56px; align-items: start; }
  .split--center { align-items: center; }
}

.zone {
  padding: 20px 22px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 11px;
  background: #fff;
}

.zone__head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }

.zone__num {
  flex: none;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.zone__head strong { font-size: 15px; color: var(--ink); }
.zone p { font-size: 13px; line-height: 1.55; color: var(--muted); }

/* ---------- features ---------- */
.features { display: grid; gap: 26px; }
.features h3 { margin-bottom: 7px; font-size: 16.5px; font-weight: 700; }
.features p { font-size: 14px; }

@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); gap: 28px 32px; } }
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, 1fr); gap: 30px 36px; } }

/* ---------- lead tracking ---------- */
.checklist { display: grid; gap: 6px; font-size: 14px; color: var(--body); }
.checklist li { display: flex; gap: 10px; }
.checklist li::before { content: "✓"; color: var(--lime-deep); font-weight: 700; }

.stage-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.stage-chips span {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.stage-chips .is-new { background: #eef3fa; color: #4a5f75; }
.stage-chips .is-contacted { background: #faf3df; color: #7a5b0d; }
.stage-chips .is-quoted { background: #f9eef4; color: #8a4a68; }
.stage-chips .is-won { background: rgba(178, 220, 35, .22); color: var(--lime-deep); }

/* ---------- testimonial ---------- */
.testimonial { position: relative; overflow: hidden; background: var(--ink-dark); }

.testimonial__bg { position: absolute; inset: 0; overflow: hidden; }

.testimonial__bg img {
  position: absolute;
  inset: -6%;
  width: 112%;
  max-width: none;
  height: 112%;
  object-fit: cover;
  animation: kenburns 24s ease-in-out infinite alternate-reverse;
  will-change: transform;
}

.testimonial__scrim { position: absolute; inset: 0; background: rgba(18, 19, 12, .86); }

.testimonial__inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin-inline: auto;
  padding-block: 56px;
  text-align: center;
}

.testimonial .kicker { color: var(--lime); }

.testimonial blockquote {
  margin: 0 0 24px;
  font-size: clamp(19px, 2.6vw, 25px);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -.01em;
  color: #fff;
}

.testimonial figcaption { font-size: 14.5px; color: var(--on-dark); }
.testimonial figcaption strong { color: #fff; }

/* testimonial carousel — segment bars like the signup mobile progress */
.testimonial__slides blockquote { min-height: 0; }

/* slides stack in one grid cell and cross-fade; the block keeps the height
   of the tallest quote, so nothing jumps between short and long quotes */
.testimonial__slides { display: grid; }
.testimonial__slide {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
  pointer-events: none;
}
.testimonial__slide.is-active { opacity: 1; pointer-events: auto; }

.testimonial__bars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.testimonial__bars button {
  position: relative;
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  overflow: hidden;
  cursor: pointer;
}

.testimonial__bars button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
}

/* The active bar is filled by the animation alone. A static full-bar rule here
   made the bar snap to 100% whenever the animation was not running. */
.testimonial__bars button.is-filling::after {
  animation: bar-fill 9s linear forwards;
}

.testimonial__bars button.is-paused::after { animation-play-state: paused; }

@keyframes bar-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 34px;
  margin-top: 32px;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-dark-dim);
}

.awards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 26px;
  font-size: 12px;
  color: var(--on-dark);
}

.awards span { padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; }

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; }

.faq > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq > div:last-child { border-bottom: 0; }
.faq h3 { margin-bottom: 6px; font-size: 16px; font-weight: 700; }
.faq p { font-size: 14px; }

/* ---------- cta band ---------- */
.cta {
  display: grid;
  gap: 22px;
  margin-block: 8px 56px;
  padding: 32px;
  border-radius: 16px;
  background: var(--lime);
}

.cta h2 { margin-bottom: 8px; font-size: clamp(21px, 2.8vw, 28px); color: var(--lime-ink); }
.cta p { font-size: 15.5px; color: #3d4a12; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta__actions .btn { flex: 1 1 180px; }

@media (min-width: 900px) {
  .cta { grid-template-columns: 1fr auto; align-items: center; gap: 32px; padding: 44px 48px; }
  .cta__actions .btn { flex: 0 0 auto; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); }

.site-footer__top {
  display: grid;
  gap: 32px;
  padding-block: 44px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.site-footer img { height: 28px; width: auto; margin-bottom: 16px; }
.site-footer p { font-size: 13px; }
.site-footer h2 { margin-bottom: 6px; font-size: 13.5px; font-weight: 700; color: #fff; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--lime); }
.site-footer ul { display: grid; gap: 8px; font-size: 13.5px; }
.site-footer address { font-size: 13.5px; font-style: normal; line-height: 1.7; }
.site-footer address a { color: var(--lime); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  padding-block: 20px 28px;
  font-size: 12.5px;
}

.site-footer__social { display: flex; gap: 20px; }

@media (min-width: 700px) {
  .site-footer__top { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-block: 52px 36px; }
}

/* ---------- motion ---------- */
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.14) translate(-2.5%, -1.5%); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none !important; opacity: 1; transform: none; }
  /* ticker and background drift keep moving by owner's choice (slow, low-contrast) */
}

/* ---------- print ---------- */
@media print {
  .site-header, .ticker, .nav-toggle, .nav-drawer { display: none !important; }
  body { color: #000; }
  .hero__bg, .testimonial__bg { display: none; }
  .hero, .testimonial { background: #fff; }
  .hero h1, .hero__lede, .testimonial blockquote { color: #000; }
}
