/*
 * sites.css — academy.scalewiseva.com and built.scalewiseva.com
 *
 * ONE stylesheet for two hosts, and it is linked ALONE on both. That is the
 * rule this project learned the hard way and records in CLAUDE.md: every
 * legacy page stylesheet carries its own :root, reset and body{}, so loading
 * two of them on one page gives you a second global reset. These two hosts
 * load this file and nothing else, so the class names can be plain
 * (.wrap, .card, .head) without colliding with anything.
 *
 * ADD A SECOND STYLESHEET TO EITHER HOST AND EVERY ONE OF THESE BECOMES A
 * COLLISION. If one of them ever needs main.css, rename these first.
 *
 * They are siblings on purpose. Academy teaches the work and Built ships the
 * tools; both are the same person's output next to the agency rather than
 * part of its sales path, so they read as one small family and neither wears
 * the ScaleWise marketing chrome.
 */

:root {
  --ink: #14140f;
  --ink-soft: #4a4a42;
  --ink-faint: #6f6f66;
  --paper: #f7f5ef;
  --paper-2: #fffdf8;
  --rule: #ddd8cb;
  --rule-strong: #b9b2a1;
  --brass: #9a6b16;
  --brass-ink: #7d560f;
  --max: 1080px;
  --gut: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2efe6;
    --ink-soft: #b9b3a4;
    --ink-faint: #8d877a;
    --paper: #15161a;
    --paper-2: #1c1e23;
    --rule: #2e3037;
    --rule-strong: #4a4d56;
    --brass: #d9a441;
    --brass-ink: #e8bd6b;
  }
}

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

html {
  /* The root, not the body. What a browser paints between one document
     leaving and the next painting is the ROOT background, which is why the
     portal used to flash white on every navigation. */
  background-color: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

/* ── chrome ──────────────────────────────────────────────────────────── */

.nav {
  border-bottom: 1px solid var(--rule);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.nav-name {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brass);
  flex: none;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-faint);
  font-size: 15px;
  text-decoration: none;
}

.nav-back:hover {
  color: var(--ink);
}

/* ── hero ────────────────────────────────────────────────────────────── */

.hero {
  padding: 76px 0 56px;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--brass-ink);
}

.h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 500;
  max-width: 16ch;
}

.lede {
  margin: 22px 0 0;
  max-width: 58ch;
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  color: var(--ink-soft);
}

/* ── sections ────────────────────────────────────────────────────────── */

.sec {
  padding: 56px 0;
  border-top: 1px solid var(--rule);
}

.h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.sec-note {
  margin: 0 0 30px;
  max-width: 62ch;
  color: var(--ink-soft);
}

/* ── the tool entries on built. ──────────────────────────────────────── */

.tools {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.tool {
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--paper-2);
  padding: 26px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tool-top {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-name {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--brass-ink);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 3px 9px;
}

.tool-what {
  margin: 12px 0 18px;
  color: var(--ink-soft);
}

.facts {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 15px;
}

.facts li {
  padding-left: 18px;
  position: relative;
  color: var(--ink-soft);
}

.facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 1px;
  background: var(--rule-strong);
}

.tool-foot {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-1 {
  background: var(--ink);
  color: var(--paper);
}

.btn-1:hover {
  opacity: 0.88;
}

/* --rule is a divider and measures about 1.3:1, which is fine between two
   rows and useless as the only thing marking where a button is. WCAG 1.4.11
   puts a control boundary at 3:1, so this takes the stronger token. Same
   correction /brassdeck needed. */
.btn-2 {
  border-color: var(--rule-strong);
  color: var(--ink);
  background: transparent;
}

.btn-2:hover {
  border-color: var(--ink);
}

/* ── academy: the two tracks ─────────────────────────────────────────── */

.tracks {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.track {
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 26px;
  background: var(--paper-2);
  min-width: 0;
}

.track-paid {
  border-color: var(--rule-strong);
}

.track-h {
  margin: 0 0 6px;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.track-price {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--brass-ink);
  font-weight: 500;
}

.track-p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ── notify form ─────────────────────────────────────────────────────── */

.notify {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 460px;
  margin-top: 22px;
}

.notify input {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--ink);
  /* 16px is a floor, not a style choice: Safari on iOS zooms the page when
     you focus an input under it, and leaves you zoomed. */
  font-size: 16px;
  font-family: inherit;
}

.notify input:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}

.notify-note {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--ink-faint);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.msg {
  margin: 14px 0 0;
  font-size: 15px;
}

/* ── footer ──────────────────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--rule);
  padding: 30px 0 46px;
  color: var(--ink-faint);
  font-size: 15px;
}

.foot-in {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-faint);
  text-decoration: none;
  margin-right: 18px;
}

.foot a:hover {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (max-width: 640px) {
  .hero {
    padding: 52px 0 40px;
  }

  .sec {
    padding: 44px 0;
  }
}
