/* SiteTally — marketing site in Tally's own design language.
   Palette, type and shapes match the product: navy #1C2A45, action blue
   #3B7BD0, Public Sans / Archivo / Space Mono, rounded cards, soft shadows. */
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;600;700;800&family=Archivo:wght@700;800;900&family=Space+Mono:wght@400;700&display=swap');

:root {
  --navy: #1C2A45;
  --navy-2: #24334f;
  --blue: #3B7BD0;
  --blue-dark: #185FA5;
  --ink: #1b2233;
  --muted: #697185;
  --faint: #9aa3b2;
  --ground: #f5f7fb;
  --line: #e6eaf2;
  --card: #ffffff;
  --green: #2b7a4b; --green-bg: #e7f4ee;
  --amber: #8a5a12; --amber-bg: #fbf3e3;
  --red: #b3261e;   --red-bg: #fdecea;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(28, 42, 69, 0.07);
  --shadow-md: 0 10px 30px -12px rgba(28, 42, 69, 0.22);
  --shadow-lg: 0 24px 60px -24px rgba(28, 42, 69, 0.38);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: 'Public Sans', system-ui, sans-serif;
  font-size: 16px; line-height: 1.6; text-wrap: pretty;
}
img, svg { display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
::selection { background: rgba(59, 123, 208, 0.25); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* — eyebrow (the app's own device: Space Mono, letterspaced, blue) — */
.eyebrow {
  display: block; font-family: 'Space Mono', monospace; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow.on-dark { color: #8fb2e6; }

h2.section-title {
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; color: var(--navy);
}
.section-sub { color: var(--muted); font-size: 17px; max-width: 62ch; margin: 0; }

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Public Sans', sans-serif; font-weight: 700; font-size: 16px;
  border-radius: 12px; padding: 14px 26px; text-decoration: none; cursor: pointer;
  border: 0; transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn-blue { background: var(--blue); color: #fff; box-shadow: var(--shadow-md); }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.35); }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-ghost-light { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost-light:hover { border-color: var(--blue); color: var(--blue); }

/* — nav — */
.nav {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 30px; height: 30px; }
.brand-word {
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 23px;
  letter-spacing: -0.035em; color: var(--navy);
}
.nav-link { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-link:hover { color: var(--blue); }
.nav .btn { padding: 10px 20px; font-size: 15px; }
@media (max-width: 640px) { .nav-link { display: none; } }

/* — hero — */
.hero {
  background: linear-gradient(160deg, #16223a 0%, var(--navy) 45%, #253a63 100%);
  color: #fff; overflow: hidden; position: relative;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 85% 20%, rgba(59, 123, 208, 0.25), transparent 70%),
    radial-gradient(500px 260px at 10% 90%, rgba(59, 123, 208, 0.12), transparent 70%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(56px, 8vw, 104px) 0 clamp(120px, 12vw, 150px);
}
.hero h1 {
  font-family: 'Archivo', sans-serif; font-weight: 900; letter-spacing: -0.025em;
  font-size: clamp(38px, 5.4vw, 62px); line-height: 1.06; margin: 0 0 18px;
}
.hero h1 .accent { color: #8fb2e6; }
.hero .lede { font-size: 18px; line-height: 1.65; color: #c3cde0; max-width: 54ch; margin: 0 0 28px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .trust { margin-top: 22px; font-size: 14px; color: #8fa0bd; }
.hero .trust strong { color: #c3cde0; font-weight: 700; }

/* — the product shot in the hero: the staff live board — */
.board-shot { position: relative; }
.board-card {
  background: var(--card); border-radius: 18px; padding: 18px;
  box-shadow: var(--shadow-lg); color: var(--ink);
  max-width: 460px; margin-left: auto;
}
.board-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.board-title { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 17px; color: var(--navy); }
.board-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.12em; color: var(--green);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #3FA46B;
  box-shadow: 0 0 0 0 rgba(63, 164, 107, 0.5); animation: pulse 1.8s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 164, 107, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(63, 164, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 164, 107, 0); }
}
.board-pill {
  margin-left: auto; display: inline-flex; align-items: baseline; gap: 6px;
  background: var(--navy); color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 12px;
}
.board-pill strong { font-family: 'Archivo', sans-serif; font-size: 15px; }
.board-row {
  display: flex; align-items: center; gap: 10px; background: var(--ground);
  border-radius: 11px; padding: 10px 12px; margin-top: 7px; font-size: 13px;
}
.board-name { font-weight: 700; color: var(--navy); white-space: nowrap; }
.board-sub { color: var(--muted); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.chip {
  flex: none; font-size: 10px; font-weight: 700; border-radius: 7px;
  padding: 4px 8px; white-space: nowrap;
}
.chip.on { background: var(--green-bg); color: var(--green); }
.chip.plan { background: #eef1fb; color: var(--blue); font-family: 'Space Mono', monospace; font-size: 9.5px; }
.chip.late { background: var(--amber-bg); color: var(--amber); }
.chip.cert { background: var(--amber-bg); color: #b9791f; }
.chip.car { background: #eef1fb; color: var(--blue); }
.board-foot { margin-top: 12px; font-size: 11.5px; color: var(--faint); text-align: center; }

/* — stats band overlapping the hero — */
.stats { position: relative; z-index: 2; margin-top: -78px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px 18px; box-shadow: var(--shadow-sm);
}
.stat-num {
  font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 38px; line-height: 1;
  color: var(--navy); letter-spacing: -0.02em;
}
.stat-label { font-weight: 700; font-size: 14px; margin-top: 8px; color: var(--ink); }
.stat-rem { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.stats-note { text-align: center; font-size: 13px; color: var(--faint); margin: 14px 0 0; }
@media (max-width: 880px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } .stats { margin-top: -58px; } }
@media (max-width: 480px) { .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .stat-num { font-size: 30px; } }

/* — sections — */
section.block { padding: clamp(64px, 9vw, 110px) 0 0; }
section.block:last-of-type { padding-bottom: clamp(64px, 9vw, 100px); }

/* — the worker's phone: three device mockups — */
.phone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3.5vw, 44px); margin-top: 44px; }
.phone-col { display: flex; flex-direction: column; }
.device {
  background: var(--navy); border-radius: 30px; padding: 12px 10px;
  box-shadow: var(--shadow-md); max-width: 290px; margin: 0 auto; width: 100%;
}
/* One fixed screen height for all three phones: shorter flows show app
   background below the card, exactly like a real screen would. */
.device-screen { background: var(--ground); border-radius: 21px; padding: 12px 11px;
  font-size: 12px; color: var(--ink); height: 430px; overflow: hidden; }
.phone-cap { min-height: 168px; }
.ph-card { background: #fff; border-radius: 14px; padding: 13px 12px; box-shadow: var(--shadow-sm); }
.ph-brand {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 14px;
  letter-spacing: -0.035em; color: var(--navy); margin-bottom: 10px;
}
.ph-mark { width: 17px; height: 17px; }
.ph-hero { background: var(--navy); border-radius: 13px; padding: 14px 10px 13px; text-align: center; color: #fff; margin-bottom: 10px; }
.ph-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Space Mono', monospace; font-size: 8.5px; letter-spacing: 0.14em; color: #82e0aa;
}
.ph-dot { width: 7px; height: 7px; border-radius: 50%; background: #3FA46B; }
.ph-count { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 44px; line-height: 1; margin: 6px 0 4px; }
.ph-site { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 13px; }
.ph-code { font-family: 'Space Mono', monospace; font-size: 9px; color: #8fb2e6; margin-top: 2px; }
.ph-btn {
  display: block; width: 100%; text-align: center;
  font-weight: 700; font-size: 12px; border-radius: 9px; padding: 10px 8px; margin-top: 7px;
}
.ph-btn.navy { background: var(--navy); color: #fff; }
.ph-btn.ghost { background: #fff; color: var(--navy); border: 1.5px solid #dde2f5; }
.ph-btn.hazard { background: var(--amber-bg); color: var(--amber); border: 1.5px solid #f0e1bf; font-size: 11.5px; padding: 8px; }
.ph-link { display: block; text-align: center; color: var(--muted); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; padding-top: 8px; }
.ph-title { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 14.5px; color: var(--navy); margin-bottom: 8px; }
.ph-notice { background: var(--amber-bg); border: 1px solid #f0e1bf; border-radius: 11px; padding: 10px 11px; color: #6b5320; font-size: 10.5px; line-height: 1.45; margin-bottom: 8px; }
.ph-notice strong { font-family: 'Archivo', sans-serif; color: var(--navy); display: block; margin-bottom: 4px; font-size: 11px; }
.ph-notice ul { margin: 0; padding-left: 15px; }
.ph-notice li { margin: 2px 0; }
.ph-ack {
  display: flex; gap: 8px; align-items: flex-start; background: #fff;
  border: 1.5px solid #e6e9f1; border-radius: 10px; padding: 9px 10px;
  font-size: 10px; line-height: 1.4; color: var(--ink);
}
.ph-box { flex: none; width: 14px; height: 14px; border-radius: 3px; background: var(--navy); color: #fff; font-size: 10px; line-height: 14px; text-align: center; font-weight: 700; }
.ph-scores { display: flex; gap: 5px; margin-bottom: 8px; }
.ph-score { flex: 1; border-radius: 9px; padding: 5px 4px; text-align: center; font-size: 8.5px; font-weight: 600; }
.ph-score strong { display: block; font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 15px; }
.ph-score.safe { background: var(--green-bg); color: #3d6b51; } .ph-score.safe strong { color: var(--green); }
.ph-score.missing { background: var(--red-bg); color: #8f4a44; } .ph-score.missing strong { color: var(--red); }
.ph-score.pending { background: var(--amber-bg); color: var(--amber); } .ph-score.pending strong { color: #b9791f; }
.ph-roll { display: flex; flex-direction: column; gap: 5px; }
.ph-mrow {
  display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 9px;
  padding: 7px 9px; border: 1px solid #eef1f6; border-left: 4px solid transparent; font-size: 10.5px;
}
.ph-mrow.ok { border-left-color: #3FA46B; opacity: 0.75; }
.ph-mrow.bad { border-left-color: var(--red); background: #fdf3f2; }
.ph-mrow .who { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; color: var(--navy); }
.ph-mrow .sub { color: var(--muted); font-weight: 400; font-size: 9.5px; }
.ph-chip { flex: none; font-size: 8px; font-weight: 700; border-radius: 6px; padding: 3px 6px; }
.ph-chip.safe { background: var(--green-bg); color: var(--green); }
.ph-mbtns { display: flex; gap: 4px; flex: none; }
.ph-mbtn { border: 1.5px solid #dfe3ec; background: #fff; border-radius: 7px; padding: 4px 7px; font-weight: 700; font-size: 9px; color: var(--navy); }
.ph-mbtn.no { color: var(--red); }
.phone-cap { text-align: center; margin-top: 20px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff;
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 13px; margin-bottom: 10px;
}
.phone-cap h3 { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 19px; color: var(--navy); margin: 0 0 6px; }
.phone-cap p { font-size: 14.5px; color: var(--muted); margin: 0 auto; max-width: 34ch; line-height: 1.55; }
.fig-note { text-align: center; font-size: 13px; color: var(--faint); margin: 34px 0 0; }
@media (max-width: 880px) { .phone-grid { grid-template-columns: 1fr; gap: 40px; } }

/* — feature grid — */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 42px; height: 42px; border-radius: 11px; background: #eef1fb;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.feature h3 { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 18px; color: var(--navy); margin: 0 0 7px; }
.feature p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.55; }
@media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr; } }

/* The positioning line: said plainly, under the features. Not a callout box —
   it should read as a straight answer to "so is this a cheaper Procore?" */
.lane {
  margin: 34px auto 0; max-width: 62ch; text-align: center;
  font-size: 16px; line-height: 1.6; color: var(--muted);
}
.lane strong { color: var(--navy); font-weight: 700; }

/* — provenance / quote — */
.prov { background: var(--ground); margin-top: clamp(64px, 9vw, 110px); padding: clamp(56px, 8vw, 90px) 0; }
.prov-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.prov p.body { color: var(--muted); font-size: 16.5px; margin: 0; }
.quote-card {
  background: var(--navy); color: #fff; border-radius: 18px; padding: 32px 30px;
  box-shadow: var(--shadow-md); position: relative;
}
.quote-card blockquote {
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 20px; line-height: 1.45;
  margin: 0 0 18px; letter-spacing: -0.01em;
}
.quote-card figcaption { font-size: 14px; color: #8fb2e6; }
.quote-card .qmark {
  position: absolute; top: 14px; right: 24px; font-family: 'Archivo', sans-serif;
  font-weight: 900; font-size: 84px; line-height: 1; color: rgba(143, 178, 230, 0.18);
}
@media (max-width: 880px) { .prov-grid { grid-template-columns: 1fr; } }

/* — CTA band — */
.cta-band { background: linear-gradient(150deg, #16223a, var(--navy) 60%, #253a63); color: #fff;
  margin-top: clamp(64px, 9vw, 110px); }
.cta-inner { text-align: center; padding: clamp(56px, 8vw, 88px) 0; }
.cta-inner h2 { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: clamp(28px, 3.8vw, 42px); letter-spacing: -0.02em; margin: 0 0 14px; }
.cta-inner p { color: #c3cde0; font-size: 17px; max-width: 58ch; margin: 0 auto 30px; }
.cta-inner .addr { display: block; margin-top: 18px; font-family: 'Space Mono', monospace; font-size: 14px; color: #8fb2e6; }
.cta-inner .addr a { color: #8fb2e6; }

/* — footer — */
footer.site {
  border-top: 1px solid var(--line); padding: 30px 0 40px; font-size: 13.5px; color: var(--muted);
}
.foot-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.foot-inner .brand-word { font-size: 18px; }
.foot-inner .brand-mark { width: 22px; height: 22px; }
.foot-copy { margin-left: auto; text-align: right; }
@media (max-width: 640px) { .foot-copy { margin-left: 0; text-align: left; } }

/* — hero responsive — */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-bottom: 110px; }
  .board-card { margin: 0 auto; }
}
