/* ============================================================
   Millwork IO — Pre-launch landing
   Static CSS, design tokens inlined from the locked design system.
   ============================================================ */

:root {
  /* ---------- CORE PALETTE (locked) ---------- */
  --shop-green:    #103B32;
  --black-green:   #091F1B;
  --brass:         #B89A45;
  --pale-gold:     #D8C27A;
  --warm-white:    #F6F2E8;
  --near-white:    #FBFAF6;
  --warm-well:     #ECE5D2;
  --graphite:      #252A27;
  --blueprint:     #2F6F8F;

  --soft-line:     #D8D1C2;
  --muted-text:    #6C746F;
  --green-hover:   #1C5A4B;
  --error:         #A63D36;
  --success:       #246B49;

  --fg-1: var(--graphite);
  --fg-2: var(--muted-text);
  --fg-on-dark: var(--warm-white);
  --fg-accent: var(--brass);
  --fg-link: var(--shop-green);
  --fg-link-hover: var(--green-hover);

  --bg-1: var(--warm-white);
  --bg-2: var(--near-white);
  --bg-dark: var(--black-green);
  --bg-dark-2: #0F2925;

  --line: rgba(37, 42, 39, 0.12);
  --line-strong: rgba(37, 42, 39, 0.22);
  --line-on-dark: rgba(246, 242, 232, 0.15);

  /* Type stacks */
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --body:    "Inter", system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  /* Spacing */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --r-1: 2px;
  --r-2: 4px;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 120ms;
  --dur-base: 180ms;
  --dur-slow: 280ms;

  --max-w: 1280px;
  --gutter: 56px;
}

/* ============================================================
   RESET / GLOBALS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

a {
  color: var(--fg-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(16,59,50,0.4);
  transition: color var(--dur-fast) var(--ease-out),
              text-decoration-color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--fg-link-hover); text-decoration-color: currentColor; }

::selection { background: var(--pale-gold); color: var(--black-green); }

p { margin: 0 0 var(--s-4); text-wrap: pretty; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.display, .t-display {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(56px, 7.2vw, 96px);
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--shop-green);
  margin: 0;
}
.on-dark.display, .display.on-dark { color: var(--warm-white); }

/* Echo of the brass underscore beneath "IO" in the Millwork IO mark.
   Applied to the words "in" and "out" in the hero headline so the
   tagline visually ties back to the IO in the wordmark. */
.io-echo {
  position: relative;
  display: inline-block;
  padding-bottom: 0.06em;
}
.io-echo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 0.06em;
  min-height: 3px;
  background: var(--brass);
}

.t-h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 4.4vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--graphite);
  margin: 0 0 var(--s-5);
}
.t-h1.on-dark, .on-dark.t-h1 { color: var(--warm-white); }

.on-dark { color: var(--warm-white); }

.mono {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-text);
}
.mono--brass { color: var(--brass); }

.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: var(--s-5);
}
.eyebrow__rule {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--brass);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: var(--r-2);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  line-height: 1;
}

.btn--primary {
  background: var(--shop-green);
  color: var(--warm-white);
  border-color: var(--shop-green);
}
.btn--primary:hover { background: var(--green-hover); border-color: var(--green-hover); color: var(--warm-white); text-decoration: none; }
.btn--primary:active { filter: brightness(0.92); }

.btn--ghost {
  background: transparent;
  color: var(--graphite);
  border-color: rgba(16, 59, 50, 0.25);
}
.btn--ghost:hover { border-color: rgba(16, 59, 50, 0.6); color: var(--shop-green); text-decoration: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--warm-white);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-7);
}
.site-header__logo { display: inline-flex; align-items: center; text-decoration: none; }
.site-header__logo img { height: 22px; width: auto; }

.site-header__meta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  flex: 1;
  justify-content: center;
}
.site-header__meta .mono { font-size: 11px; }

.site-header__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.site-header__cta .btn { padding: 10px 16px; font-size: 13px; }

@media (max-width: 980px) {
  .site-header__meta { display: none; }
}
@media (max-width: 720px) {
  .site-header__cta .btn--ghost { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: var(--s-9) 0 var(--s-7); }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--s-8);
  align-items: center;
}

.hero__copy { max-width: 560px; }

.hero__lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--graphite);
  margin: var(--s-7) 0 var(--s-7);
  max-width: 520px;
  text-wrap: pretty;
}

.hero__secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--s-7);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
  text-decoration: none;
}
.hero__secondary:hover { color: var(--shop-green); }
.hero__secondary svg { transition: transform var(--dur-base) var(--ease-out); }
.hero__secondary:hover svg { transform: translateY(3px); }

.hero__strip {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s-5);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted-text);
  text-transform: uppercase;
}
.hero__strip span:nth-child(2) { text-align: center; }
.hero__strip span:nth-child(3) { text-align: right; }

@media (max-width: 980px) {
  .hero { padding: var(--s-8) 0 var(--s-6); }
  .hero__inner { grid-template-columns: 1fr; gap: var(--s-7); }
  .hero__strip { grid-template-columns: 1fr; }
  .hero__strip span:nth-child(2), .hero__strip span:nth-child(3) { text-align: left; }
}

/* ============================================================
   HERO DRAWING
   ============================================================ */
.hero__drawing {
  position: relative;
  aspect-ratio: 16 / 11;
  width: 100%;
}

.corner {
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
}
.corner--tl { top: 0; left: 0; border-top: 1.4px solid var(--brass); border-left: 1.4px solid var(--brass); }
.corner--tr { top: 0; right: 0; border-top: 1.4px solid var(--brass); border-right: 1.4px solid var(--brass); }
.corner--bl { bottom: 0; left: 0; border-bottom: 1.4px solid var(--brass); border-left: 1.4px solid var(--brass); }
.corner--br { bottom: 0; right: 0; border-bottom: 1.4px solid var(--brass); border-right: 1.4px solid var(--brass); }

.drawing-field {
  position: absolute;
  inset: 28px;
  background-image:
    linear-gradient(to right, rgba(37,42,39,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37,42,39,0.06) 1px, transparent 1px);
  background-size: 16px 16px;
}
.drawing-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.dwg-label,
.dwg-redline,
.dwg-stamp,
.dim-text,
.intake-eyebrow,
.intake-sub,
.meta-text,
.bubble-top,
.bubble-bot {
  font-family: "JetBrains Mono", monospace;
}
.dwg-label { font-size: 7px; letter-spacing: 0.16em; fill: var(--graphite); font-weight: 600; }
.dwg-redline { font-size: 7px; letter-spacing: 0.14em; fill: var(--error); font-weight: 600; }
.dwg-stamp { font-size: 6.5px; letter-spacing: 0.18em; fill: var(--brass); }
.dim-text { font-size: 6.5px; letter-spacing: 0.06em; fill: var(--brass); }
.intake-eyebrow { font-size: 8px; letter-spacing: 0.22em; fill: var(--brass); font-weight: 600; }
.intake-sub { font-size: 5.5px; letter-spacing: 0.18em; fill: var(--graphite); text-transform: uppercase; }
.meta-text { font-size: 6.5px; letter-spacing: 0.16em; fill: var(--muted-text); }
.bubble-top { font-size: 5px; fill: var(--graphite); font-weight: 600; }
.bubble-bot { font-size: 3.5px; fill: var(--graphite); letter-spacing: 0.1em; }

/* ============================================================
   SIGNUP FORM
   ============================================================ */
.signup { margin: 0; }
.signup__label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--s-3);
}
.signup__row {
  display: flex;
  gap: var(--s-3);
  align-items: stretch;
}
.signup__input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  font-family: var(--body);
  font-size: 15px;
  color: var(--graphite);
  background: var(--near-white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.signup__input::placeholder { color: var(--fg-2); }
.signup__input:focus {
  border-color: var(--shop-green);
  background: #fff;
}
.signup__input:invalid:not(:placeholder-shown) {
  border-color: rgba(166, 61, 54, 0.5);
}

.signup__status {
  margin-top: var(--s-3);
  min-height: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--success);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.signup__status.is-visible { opacity: 1; }
.signup__status.is-error { color: var(--error); }

.signup__fine {
  margin: var(--s-4) 0 0;
  font-size: 13px;
  color: var(--muted-text);
  line-height: 1.5;
}

.signup--large .signup__input { padding: 18px 18px; font-size: 16px; }
.signup--large .btn { padding: 18px 26px; font-size: 15px; }

@media (max-width: 620px) {
  .signup__row { flex-direction: column; }
  .signup__row .btn { width: 100%; }
}

/* ============================================================
   SECTION CHROME
   ============================================================ */
.section { padding: var(--s-9) 0; }
.section__head { max-width: 880px; margin: 0 0 var(--s-8); }
.section__head--dark { color: var(--warm-white); }
.section__lead {
  font-size: 19px;
  line-height: 1.55;
  margin: var(--s-5) 0 0;
  max-width: 640px;
  color: var(--graphite);
}
.section__lead.on-dark { color: rgba(246, 242, 232, 0.78); }

/* ============================================================
   PROBLEM SECTION
   ============================================================ */
.section--problem {
  background: var(--warm-well);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.problems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
.problem {
  border-top: 1px solid var(--line-strong);
  padding-top: var(--s-5);
}
.problem__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--brass);
  margin-bottom: var(--s-5);
}
.problem__head {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--graphite);
  margin: 0 0 var(--s-3);
}
.problem__body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--graphite);
  margin: 0;
}

@media (max-width: 880px) {
  .problems { grid-template-columns: 1fr; gap: var(--s-7); }
}

/* ============================================================
   WORKFLOW (DARK SECTION)
   ============================================================ */
.section--dark {
  background: var(--bg-dark);
  color: var(--warm-white);
  position: relative;
  overflow: hidden;
}
.section--dark .container { position: relative; z-index: 1; }
.section--dark__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(184,154,69,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(184,154,69,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-on-dark);
  border: 1px solid var(--line-on-dark);
}
.step {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: var(--s-5);
  background: var(--bg-dark);
  padding: var(--s-6) var(--s-6);
}
.step__rail {
  border-right: 1px solid var(--line-on-dark);
  padding-right: var(--s-5);
  display: flex;
  align-items: flex-start;
}
.step__num {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--brass);
}
.step__head {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--warm-white);
  margin: 0 0 var(--s-3);
}
.step__copy {
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(246, 242, 232, 0.75);
  margin: 0;
}

@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; }
  .step { grid-template-columns: 56px 1fr; padding: var(--s-5); }
  .step__rail { padding-right: var(--s-4); }
}

.callout {
  margin-top: var(--s-8);
  padding: var(--s-6);
  border: 1px solid var(--line-on-dark);
  border-left: 2px solid var(--brass);
  background: rgba(255, 255, 255, 0.015);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--s-6);
  align-items: start;
}
.callout__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--brass);
  text-transform: uppercase;
}
.callout__body {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(246, 242, 232, 0.85);
  margin: 0;
}
@media (max-width: 720px) {
  .callout { grid-template-columns: 1fr; gap: var(--s-3); }
}

/* ============================================================
   AUDIENCE
   ============================================================ */
.section--audience { background: var(--bg-1); }

.audience {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.audience__item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--s-5);
  padding: var(--s-6) var(--s-6) var(--s-6) 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  align-items: start;
}
.audience__tick {
  font-size: 18px;
  color: var(--brass);
  font-weight: 500;
  padding-left: var(--s-5);
  letter-spacing: 0;
}
.audience__head {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--graphite);
  margin: 0 0 var(--s-3);
}
.audience__body {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted-text);
  margin: 0;
}
.audience__item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
@media (max-width: 720px) {
  .audience { grid-template-columns: 1fr; }
  .audience__item:last-child:nth-child(odd) { grid-column: auto; }
}

/* ============================================================
   EARLY ACCESS
   ============================================================ */
.section--access {
  background: var(--warm-well);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.access {
  position: relative;
  background: var(--near-white);
  border: 1px solid var(--line);
  padding: var(--s-9) var(--s-8);
  max-width: 900px;
  margin: 0 auto;
}
.access .corner { width: 24px; height: 24px; }
.access__inner { max-width: 640px; margin: 0 auto; text-align: center; }
.access .eyebrow { justify-content: center; }
.access__head { margin: var(--s-4) 0 var(--s-5); }
.access__lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--graphite);
  margin: 0 0 var(--s-7);
}
.access .signup__label { text-align: left; }
.access .signup__fine { text-align: left; }

@media (max-width: 720px) {
  .access { padding: var(--s-7) var(--s-5); }
}

/* ============================================================
   FAQ
   ============================================================ */
.section--faq { background: var(--bg-1); }

.faq {
  border-top: 1px solid var(--line);
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__q {
  display: grid;
  grid-template-columns: 80px 1fr 32px;
  gap: var(--s-5);
  align-items: center;
  padding: var(--s-5) 0;
  cursor: pointer;
  list-style: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--shop-green); }
.faq__q:hover .faq__chev { color: var(--shop-green); }

.faq__num {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--brass);
}
.faq__qtext {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--graphite);
  line-height: 1.25;
}
.faq__chev {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 400;
  color: var(--brass);
  text-align: right;
  transition: transform var(--dur-base) var(--ease-out);
  line-height: 1;
}
.faq__item[open] .faq__chev {
  transform: rotate(45deg);
}
.faq__a {
  padding: 0 32px var(--s-6) calc(80px + var(--s-5));
  max-width: 800px;
}
.faq__a p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--graphite);
  margin: 0;
}

@media (max-width: 720px) {
  .faq__q { grid-template-columns: 1fr 24px; gap: var(--s-3); }
  .faq__num { grid-column: 1 / -1; }
  .faq__qtext { font-size: 18px; }
  .faq__a { padding-left: 0; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--warm-white);
  border-top: 1px solid var(--line);
  padding: var(--s-8) 0 var(--s-5);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--s-7);
  padding-bottom: var(--s-7);
}
.site-footer__brand img { height: 22px; margin-bottom: var(--s-4); }
.site-footer__tag {
  font-size: 13px;
  color: var(--muted-text);
  margin: 0;
  max-width: 320px;
  line-height: 1.55;
}
.site-footer__nav { display: contents; }
.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer__h { margin-bottom: var(--s-3); font-size: 11px; letter-spacing: 0.16em; }
.site-footer__col a {
  color: var(--graphite);
  font-size: 14px;
  text-decoration: none;
}
.site-footer__col a:hover { color: var(--shop-green); text-decoration: underline; }
.site-footer__static {
  font-size: 14px;
  color: var(--graphite);
}

.site-footer__bar {
  display: flex;
  justify-content: space-between;
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-text);
}

@media (max-width: 720px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: var(--s-6); }
  .site-footer__bar { flex-direction: column; gap: var(--s-3); }
}
