/* ==========================================================================
   Scaled Trades — shared stylesheet
   Palette: #1f1f1f bg · #141414 surface · #ec3013 accent · #fff text
            #2e2e2e borders · #b5b5b5 body · #8a8a8a muted
   ========================================================================== */

:root {
  --bg: #1f1f1f;
  --surface: #141414;
  --accent: #ec3013;
  --accent-hover: #ff4a26;
  --white: #ffffff;
  --border: #2e2e2e;
  --body: #b5b5b5;
  --muted: #8a8a8a;

  --font-head: "Space Grotesk", Helvetica, Arial, sans-serif;
  --font-body: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1120px;
  --pad: 24px;
  --rhythm: 88px;
  --nav-h: 72px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; }

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

a { color: var(--white); text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 { font-size: 2rem; line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; line-height: 1.25; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

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

/* ------------------------------ layout --------------------------------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.section { padding-top: var(--rhythm); padding-bottom: var(--rhythm); }
.section--surface { background: var(--surface); }
.section--tight { padding-top: 56px; padding-bottom: 56px; }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lede { font-size: 1.1875rem; color: var(--body); max-width: 60ch; }

/* Section-label heading: the eyebrow promoted to a real subheader.
   Keeps the mono/uppercase brand voice but reads as a heading, and
   carries the <h2> that the section's <h3>s need above them. */
.eyebrow--head {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.13em;
  color: #c4c4c4;
  margin: 0 0 34px;
  padding-bottom: 14px;
  gap: 13px;
  border-bottom: 1px solid var(--border);
}
.eyebrow--head .barmark { height: 20px; }
@media (max-width: 640px) {
  .eyebrow--head { font-size: 0.875rem; letter-spacing: 0.1em; margin-bottom: 28px; }
  .eyebrow--head .barmark { height: 18px; }
}

/* --------------------------- bar marker ------------------------------- */
.barmark {
  display: inline-flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 18px;
  flex: none;
}
.barmark i {
  width: 3.375px;
  background: var(--white);
  display: block;
}
.barmark i:nth-child(1) { height: 33.33%; }
.barmark i:nth-child(2) { height: 54.17%; }
.barmark i:nth-child(3) { height: 75%; }
.barmark i:nth-child(4) { height: 100%; background: var(--accent); }

/* ------------------------------- nav ---------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--white);
  white-space: nowrap;
}
.nav__brand img { width: 28px; height: 28px; }
.nav__links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a:not(.btn) {
  font-size: 0.9375rem;
  color: var(--body);
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}
.nav__links .btn { flex: none; white-space: nowrap; }
.nav__links a:hover { color: var(--white); }
.nav__links a[aria-current="page"] {
  color: var(--white);
  border-bottom: 2px solid var(--accent);
}
.nav__toggle {
  display: none;
  width: 48px;
  height: 48px;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------------------------- buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 15px 26px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--secondary { background: transparent; color: var(--white); border-color: var(--white); }
.btn--secondary:hover { background: var(--white); color: var(--bg); }
.btn--tertiary {
  min-height: 0;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid var(--accent);
  border-radius: 0;
  color: var(--accent);
}
.btn--tertiary:hover { color: var(--accent-hover); border-color: var(--accent-hover); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

/* ----------------------------- cards -------------------------------- */
.cards {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 48px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.card h3 { margin-bottom: 6px; }
.card__summary { color: var(--body); margin-bottom: 20px; }
.card__features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card__features li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--accent);
}
.card__price {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: auto 0 20px;
}
.card .btn { width: 100%; }
.card .point__label { margin-bottom: 16px; }
.card .barmark { height: 26px; gap: 2.67px; }
.card .barmark i { width: 6px; background: var(--white); }
.card .barmark i:nth-child(1) { height: 44.4%; }
.card .barmark i:nth-child(2) { height: 72.2%; }
.card .barmark i:nth-child(3) { height: 100%; background: var(--accent); }

/* -------------------------- feature points ------------------------- */
.points {
  display: grid;
  gap: 40px;
  margin-top: 40px;
}
.point__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.point h3 { margin-bottom: 8px; }
.point p { max-width: 62ch; }

.footnote {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 24px;
  max-width: 70ch;
}

/* --------------------------- growth band ------------------------- */
.growth-band {
  display: flex;
  align-items: flex-end;
  gap: 2.2%;
  height: 120px;
  width: 100%;
  padding: 0 4vw;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.growth-band i { flex: 1; display: block; background: #2a2a2a; }
.growth-band i:nth-child(1) { height: 14%; }
.growth-band i:nth-child(2) { height: 24%; background: #34211c; }
.growth-band i:nth-child(3) { height: 33%; background: #3d251d; }
.growth-band i:nth-child(4) { height: 45%; background: #4a281e; }
.growth-band i:nth-child(5) { height: 58%; background: #5a2419; }
.growth-band i:nth-child(6) { height: 70%; background: #7d2a19; }
.growth-band i:nth-child(7) { height: 82%; background: #a52c16; }
.growth-band i:nth-child(8) { height: 92%; background: #cc2f14; }
.growth-band i:nth-child(9) { height: 100%; background: var(--accent); }

/* --------------------------- hero / panels --------------------- */
.hero {
  position: relative;
  padding-top: 96px;
  padding-bottom: 96px;
  background-color: var(--bg);
}
.hero--pattern,
.panel--pattern {
  background-image:
    linear-gradient(rgba(31, 31, 31, 0.87), rgba(31, 31, 31, 0.87)),
    image-set(url("../bg-pattern.webp") type("image/webp"), url("../bg-pattern.png") type("image/png"));
  background-color: var(--bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero .wrap { display: block; }
.hero__inner { max-width: 46rem; }
.hero h1 { margin-bottom: 20px; }
.hero__subhead { font-size: 1.1875rem; color: var(--body); max-width: 54ch; }

.panel {
  padding: 88px 0;
  background-color: var(--bg);
  text-align: center;
}
.panel__inner { max-width: 40rem; margin: 0 auto; }
.panel h1 { margin-bottom: 16px; }
.panel h2 { margin-bottom: 16px; color: var(--white); }

/* ------------------------- page header ------------------------- */
.page-header { padding-top: 72px; padding-bottom: 24px; }
.page-header h1 { margin-bottom: 24px; }
.page-header h2 { margin-bottom: 16px; }

/* --------------------------- prose --------------------------- */
.prose { max-width: 720px; }
.prose h1 { margin-bottom: 12px; }
.prose__sub {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}
.prose p { color: var(--body); margin-bottom: 1.25rem; }

.creds {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

/* --------------------------- contact ------------------------- */
.contact__lines { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.contact__lines a { font-size: 1.5rem; font-family: var(--font-head); color: var(--white); }
.contact__lines a:hover { color: var(--accent); }

/* --------------------------- cal embed ---------------------- */
.cal-note { color: var(--body); margin-bottom: 24px; }

/* --------------------------- terms panel -------------------- */
.terms {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  max-height: 420px;
  overflow-y: auto;
  margin-top: 32px;
}
.terms h2 {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.terms__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.terms h3 {
  font-size: 1.0625rem;
  margin: 28px 0 8px;
}
.terms p { color: var(--body); font-size: 0.9375rem; }
.terms ul { color: var(--body); font-size: 0.9375rem; padding-left: 20px; margin: 0 0 1rem; }
.terms li { margin-bottom: 6px; }

/* ----------------------------- footer ---------------------- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
}
.footer__banner { width: 240px; max-width: 60%; margin-bottom: 20px; }
.footer__service { color: var(--muted); font-size: 0.875rem; margin-bottom: 24px; }
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}
.footer__nav a { color: var(--body); font-size: 0.9375rem; }
.footer__nav a:hover { color: var(--white); }
.footer__meta {
  color: var(--muted);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer__meta a { color: var(--body); }
.footer__meta a:hover { color: var(--white); }
.footer__copy { margin-top: 16px; color: var(--muted); font-size: 0.8125rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--white);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* --------------------------- mobile nav -------------------- */
@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    margin: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.2s ease;
    overflow-y: auto;
  }
  .nav__links[data-open="true"] { transform: translateX(0); }
  .nav__links a:not(.btn) { font-size: 1.25rem; padding: 12px 0; width: 100%; }
  .nav__links a[aria-current="page"]:not(.btn) { border-bottom: 0; color: var(--accent); }
  .nav__links .btn { margin-top: 12px; align-self: flex-start; }
  .nav__toggle { display: inline-flex; }
}

/* ---------------------------- breakpoints ------------------ */
@media (min-width: 768px) {
  :root { --pad: 40px; }
}

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

@media (max-width: 768px) {
  :root { --rhythm: 56px; }
  h2 { font-size: 1.625rem; }
  .hero { padding-top: 64px; padding-bottom: 64px; }
  .growth-band { height: 72px; }
}

@media (max-width: 600px) {
  .growth-band i:nth-child(n+7) { display: none; }
  .growth-band i:nth-child(1) { height: 16%; }
  .growth-band i:nth-child(2) { height: 32%; background: #3d251d; }
  .growth-band i:nth-child(3) { height: 50%; background: #5a2419; }
  .growth-band i:nth-child(4) { height: 68%; background: #a52c16; }
  .growth-band i:nth-child(5) { height: 84%; background: #cc2f14; }
  .growth-band i:nth-child(6) { height: 100%; background: var(--accent); }
}

@media (max-width: 480px) {
  .hero--pattern { background-image: linear-gradient(var(--bg), var(--bg)); }
  .contact__lines a { font-size: 1.25rem; }
}

@media (hover: none) {
  .hero--pattern, .panel--pattern { background-attachment: scroll; }
}

/* Cal.com's popup (<cal-modal-box>) manages its own show/hide from inside
   its shadow DOM. Brand colour is set via Cal("ui", ...) in main.js. */
