/* ===================== BuildMore — buildmore.business =====================
   Dark by default: the product is read in the sun on a job site, and the
   panels the customer already knows are charcoal. Orange is a fill and never
   a letter on white — the brand guide forbids the 2.08:1 that would produce.
   ========================================================================= */
:root {
  --charcoal: #2c353e;
  --charcoal-deep: #222a32;
  --charcoal-lift: #39434e;
  --charcoal-line: rgba(255, 255, 255, 0.1);
  --orange: #f8a121;
  --orange-ink: #a46911;
  --teal: #00c3c5;
  --teal-ink: #078485;
  --silver: #c9c9c9;
  --paper: #f6f4f0;
  --ink: #1d242b;
  --on-dark: #f2f5f8;
  --on-dark-2: #a9b4bf;

  --head: "Baloo 2", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1140px;
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--charcoal);
  color: var(--on-dark);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }

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

h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(38px, 6.2vw, 70px); }
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-size: 20px; }

.eyebrow {
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

.lead { font-size: clamp(17px, 2vw, 20px); color: var(--on-dark-2); max-width: 60ch; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16.5px;
  padding: 16px 30px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
/* Charcoal on orange is 6:1. White on orange is 2.08:1 and the guide names it. */
.btn-primary { background: var(--orange); color: var(--charcoal); }
.btn-primary:hover { background: #ffb23f; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.24); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(34, 42, 50, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--charcoal-line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.site-header img { height: 30px; width: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.site-nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--on-dark-2); }
.site-nav a:hover { color: var(--on-dark); }
/* `.site-nav a` is more specific than `.btn-primary`, so without this the
   label inherits the muted grey and lands on orange — the 2.08:1 the brand
   guide forbids by name. Charcoal on orange is 6:1. */
.site-nav .btn { padding: 11px 20px; font-size: 15px; }
.site-nav .btn-primary { color: var(--charcoal); }
.site-nav .btn-primary:hover { color: var(--charcoal); }
@media (max-width: 860px) { .site-nav a:not(.btn) { display: none; } }

/* ------------------------------------------------------------------- hero */
.hero { position: relative; isolation: isolate; padding: clamp(56px, 9vw, 104px) 0 clamp(64px, 10vw, 120px); overflow: hidden; }
/* Width and height are not optional here: a canvas is a replaced element, so
   `inset: 0` alone leaves it at its intrinsic 300x150 in the corner. */
#site-scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity 1.4s ease; }
#site-scene.on { opacity: 0.5; }
/* Darkens the text side only, so the scene behind stays visible on the right
   while the headline keeps its contrast on the left. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(680px 420px at 14% 34%, rgba(34, 42, 50, 0.94), rgba(44, 53, 62, 0.45) 58%, transparent 72%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin: 18px 0 20px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 18px; }
.hero-note { font-size: 14px; color: var(--on-dark-2); }
.hero-note strong { color: var(--on-dark); font-weight: 600; }

/* the phone, drawn rather than screenshotted: it animates the arithmetic */
.punch-card {
  background: linear-gradient(180deg, var(--charcoal-lift), #323c46);
  border: 1px solid var(--charcoal-line);
  border-radius: 24px;
  padding: 26px 24px 22px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
  max-width: 380px;
  margin-inline: auto;
  width: 100%;
}
.punch-card .day { font-size: 13px; color: var(--on-dark-2); letter-spacing: 0.02em; }
.punch-card .total { font-family: var(--head); font-weight: 800; font-size: 46px; line-height: 1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.punch-card .chip { float: right; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-ink); background: rgba(0, 195, 197, 0.18); color: var(--teal); border-radius: 999px; padding: 5px 11px; }
.punch-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin: 22px 0 10px; background: rgba(255, 255, 255, 0.08); }
.punch-bar i { display: block; height: 100%; }
.punch-bar .paid { background: var(--orange); }
.punch-bar .unpaid { background: rgba(0, 195, 197, 0.55); }
.punch-ends { display: flex; justify-content: space-between; font-size: 14px; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.punch-ends b { display: block; color: var(--on-dark); font-size: 16px; font-weight: 600; }
.punch-math { margin-top: 20px; border-top: 1px solid var(--charcoal-line); padding-top: 14px; font-size: 15px; font-variant-numeric: tabular-nums; }
.punch-math div { display: flex; justify-content: space-between; padding: 6px 0; color: var(--on-dark-2); }
.punch-math div.sum { color: var(--on-dark); font-weight: 600; border-top: 1px solid var(--charcoal-line); margin-top: 6px; padding-top: 12px; }
.punch-math .teal { color: var(--teal); }

/* ------------------------------------------------------------------ strip */
.strip { border-block: 1px solid var(--charcoal-line); background: var(--charcoal-deep); }
.strip ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 22px 0; }
.strip li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; color: var(--on-dark-2); }
.strip svg { flex: none; }
@media (max-width: 860px) { .strip ul { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------- sections */
section { padding: clamp(60px, 8vw, 104px) 0; }
.section-head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 54px); }
.section-head h2 { margin: 16px 0 14px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 940px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--charcoal-lift);
  border: 1px solid var(--charcoal-line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { margin: 16px 0 10px; }
.card p { color: var(--on-dark-2); font-size: 15.5px; }
.card .num {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--orange); color: var(--charcoal);
  font-family: var(--head); font-weight: 800; font-size: 17px;
}

/* the comparison: what a paper timesheet answers, and what this does */
.swap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .swap { grid-template-columns: 1fr; } }
.swap-col { border-radius: var(--radius); padding: 26px 24px; border: 1px solid var(--charcoal-line); }
.swap-col.before { background: rgba(255, 255, 255, 0.03); }
.swap-col.after { background: var(--charcoal-lift); border-color: rgba(248, 161, 33, 0.4); }
.swap-col h3 { font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-2); }
.swap-col.after h3 { color: var(--orange); }
.swap-col li { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--charcoal-line); font-size: 15.5px; }
.swap-col li:first-of-type { border-top: 0; }
.swap-col ul { margin-top: 12px; }
.swap-col .mark { flex: none; margin-top: 3px; }

/* modules */
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.module {
  border: 1px solid var(--charcoal-line);
  border-radius: 14px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
}
.module .price { font-family: var(--head); font-weight: 800; font-size: 22px; color: var(--on-dark); }
.module h3 { font-size: 17px; margin-bottom: 6px; }
.module p { font-size: 14.5px; color: var(--on-dark-2); margin-bottom: 14px; }

/* pricing */
.plan {
  max-width: 560px;
  margin-inline: auto;
  background: var(--charcoal-lift);
  border: 1px solid rgba(248, 161, 33, 0.45);
  border-radius: 22px;
  padding: 34px 30px;
  text-align: center;
}
.plan .amount { font-family: var(--head); font-weight: 800; font-size: 64px; line-height: 1; }
.plan .amount span { font-size: 22px; color: var(--on-dark-2); }
.plan .yearly { font-size: 14.5px; color: var(--on-dark-2); margin-top: 8px; }
.plan ul { text-align: left; margin: 26px 0; display: grid; gap: 11px; }
.plan li { display: flex; gap: 11px; font-size: 15.5px; }
.plan .btn { width: 100%; }

/* trust */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; } }
.trust-item { display: flex; gap: 16px; }
.trust-item h3 { font-size: 18px; margin-bottom: 6px; }
.trust-item p { color: var(--on-dark-2); font-size: 15.5px; }
.trust-item .dot { flex: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(0, 195, 197, 0.16); display: grid; place-items: center; }

/* closing call */
.closing { text-align: center; background: linear-gradient(180deg, var(--charcoal-deep), var(--charcoal)); border-top: 1px solid var(--charcoal-line); }
.closing h2 { margin-bottom: 16px; }
.closing .lead { margin: 0 auto 30px; }

/* ----------------------------------------------------------------- footer */
footer { background: var(--charcoal-deep); border-top: 1px solid var(--charcoal-line); padding: 40px 0 46px; font-size: 14.5px; color: var(--on-dark-2); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
footer a { text-decoration: none; }
footer a:hover { color: var(--on-dark); text-decoration: underline; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-note { margin-top: 22px; font-size: 13px; color: rgba(169, 180, 191, 0.75); }

/* ------------------------------------------------------- document (paper) */
.paper { background: var(--paper); color: var(--ink); }
.paper .doc { max-width: 760px; margin-inline: auto; padding: clamp(40px, 7vw, 84px) 24px; }
.paper h1 { font-size: clamp(32px, 5vw, 46px); color: var(--ink); }
.paper h2 { font-size: clamp(21px, 2.6vw, 26px); margin: 40px 0 12px; color: var(--ink); }
.paper h3 { font-size: 17px; margin: 24px 0 8px; font-family: var(--body); font-weight: 700; }
.paper p, .paper li { font-size: 16.5px; color: #38424d; }
.paper p { margin: 12px 0; }
.paper ul { margin: 12px 0 12px 20px; list-style: disc; }
.paper li { margin: 7px 0; }
.paper a { color: var(--orange-ink); font-weight: 600; }
.paper .updated { font-size: 14px; color: #6b7681; margin-top: 10px; }
.paper .doc-header { border-bottom: 1px solid rgba(29, 36, 43, 0.14); padding-bottom: 22px; margin-bottom: 8px; }
.paper .back { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; text-decoration: none; margin-bottom: 26px; }

/* ------------------------------------------------------------- animations */
.js [data-reveal] { opacity: 0; }
.js .shown { opacity: 1 !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; }
  #site-scene { opacity: 1; }
}

/* ------------------------------------------------------- language switch */
/* Words rather than flags: a flag is a country, and the crew reading this in
   Spanish is standing in Connecticut. Each language spells its own name. */
.lang { position: relative; }
.lang summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-dark-2);
  padding: 8px 12px;
  border: 1px solid var(--charcoal-line);
  border-radius: 10px;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::marker { content: ""; }
.lang-short { display: none; }
.lang summary:hover { color: var(--on-dark); border-color: rgba(255, 255, 255, 0.28); }
.lang[open] summary { color: var(--on-dark); border-color: rgba(255, 255, 255, 0.28); }
.lang[open] .lang-caret { transform: rotate(180deg); }
.lang-caret { transition: transform 0.15s ease; }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 168px;
  display: flex;
  flex-direction: column;
  padding: 6px;
  border-radius: 12px;
  background: var(--charcoal-lift);
  border: 1px solid var(--charcoal-line);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.75);
}
.lang-option {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--on-dark-2);
  text-decoration: none;
}
a.lang-option:hover { background: rgba(255, 255, 255, 0.08); color: var(--on-dark); }
.lang-on { color: var(--charcoal); background: var(--orange); font-weight: 600; }

/* On the printed-document side the same control goes light. */
.paper .lang summary { color: #5c666f; border-color: rgba(29, 36, 43, 0.18); }
.paper .lang summary:hover, .paper .lang[open] summary { color: var(--ink); border-color: rgba(29, 36, 43, 0.4); }
.paper .lang-menu { background: #fff; border-color: rgba(29, 36, 43, 0.14); }
.paper .lang-option { color: #5c666f; }
.paper a.lang-option:hover { background: rgba(29, 36, 43, 0.06); color: var(--ink); }
.paper .lang-on { color: var(--charcoal); background: var(--orange); }

/* On a phone the header carries three things — mark, language, trial — and
   the sum of them was wider than the screen: the button lost its last letters
   off the right edge. Everything in the bar gives up a little. */
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { gap: 10px; }
  .site-header img { height: 26px; }
  .site-nav { gap: 8px; }
  .site-nav .btn { padding: 10px 14px; font-size: 14px; white-space: nowrap; }
  .site-nav .lang summary { padding: 7px 9px; font-size: 13px; gap: 5px; }
  .site-nav .lang-long { display: none; }
  .site-nav .lang-short { display: inline; }
}

/* Under 480 the three of them do not fit however small they get, and the one
   to give up is the button: the same call to action sits in the hero, a
   thumb's length below, and again at the end of the page. What the sticky bar
   has to keep is the mark and the way out of the wrong language. */
@media (max-width: 480px) {
  .site-nav .btn-primary { display: none; }
}

/* In the document header the control sits on its own line, left aligned. */
.lang-doc { display: inline-block; margin-top: 16px; }
.lang-doc .lang-menu { left: 0; right: auto; }
