/* New Product Help — site styles */

:root {
  --ground: #eef3f6;
  --sheet: #ffffff;
  --ink: #142334;
  --graphite: #556373;
  --rule: #c9d6df;
  --brand: #1399c9;
  --brand-deep: #0b6e94;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --measure: 36rem;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
  font-optical-sizing: auto;
}

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

a { color: var(--brand-deep); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.375rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; max-width: var(--measure); }

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

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Header */

.site-header { background: var(--sheet); border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem; padding-top: 1.1rem; padding-bottom: 1.1rem;
}
.logo img { width: 15rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; }
.site-nav a {
  font-family: var(--display); font-weight: 500; font-size: 1rem;
  color: var(--ink); text-decoration: none; padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--brand-deep); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--brand); }

/* Buttons */

.button {
  display: inline-block;
  font-family: var(--display); font-weight: 600; font-size: 1.0625rem;
  background: var(--brand-deep); color: #fff; text-decoration: none;
  padding: 0.8rem 1.4rem; border-radius: 3px;
}
.button:hover { background: var(--ink); color: #fff; }

/* Hero */

.hero {
  --board: #1e1f21;
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--board); color: #fff;
  min-height: min(40rem, 82vh);
  display: flex; align-items: center;
  padding: clamp(3rem, 8vw, 6.5rem) 0;
}
.hero .wrap { width: 100%; }
/* photo sits on the right; its chalkboard fades into the solid board on the left */
.hero-bg {
  position: absolute; z-index: -2; top: 0; right: 0;
  width: 64%; height: 100%;
  object-fit: cover; object-position: 55% 30%;
}
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, var(--board) 36%, rgba(30, 31, 33, 0.85) 46%, rgba(30, 31, 33, 0) 62%);
}
.hero-copy { max-width: 32rem; }
.hero h1 { max-width: 9ch; color: #fff; }
.lede { font-size: 1.3125rem; color: var(--graphite); max-width: 34rem; }
.hero .lede { color: #d5dde3; max-width: 30rem; margin-bottom: 1.75rem; }
.hero .button { background: var(--brand-deep); }
.hero .button:hover { background: #fff; color: var(--ink); }

/* Figure sheets: product drawings shown like patent figure pages */

.sheet {
  margin: 0;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: clamp(1rem, 3vw, 2rem);
}
.sheet figcaption {
  font-family: var(--display); font-size: 0.9375rem; color: var(--graphite);
  margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--rule);
}
.sheet figcaption b { color: var(--ink); font-weight: 600; margin-right: 0.35em; }

/* Process: the five steps */

.process { background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.process .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 2rem clamp(2rem, 6vw, 5rem); align-items: start; }
.process-intro { position: sticky; top: 2rem; }
.process-intro p { color: var(--graphite); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0 1.5rem;
  padding-bottom: 2.75rem;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  grid-row: span 3;
  font-family: var(--display); font-weight: 800; font-size: 2.25rem; line-height: 1;
  color: var(--brand);
  width: 4.5rem; height: 4.5rem; border: 2px solid var(--brand); border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sheet); position: relative; z-index: 1;
}
/* the rail connecting the numbers */
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: calc(2.25rem - 1px); top: 4.5rem; bottom: 0;
  border-left: 2px solid var(--rule);
}
.steps h3 { margin: 0.6rem 0 0.4rem; font-size: 1.5rem; }
.steps p { margin-bottom: 0.5rem; }
.steps a { font-family: var(--display); font-weight: 600; font-size: 1rem; }

/* Help band */

.band { padding: clamp(3rem, 7vw, 5rem) 0; }
.band .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.band h2 { margin: 0; max-width: 22ch; }

/* Quote */

.quote { background: var(--ink); color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.quote blockquote { margin: 0; max-width: 46rem; }
.quote blockquote p {
  font-family: var(--body); font-style: italic; font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.4; max-width: none;
  margin-bottom: 1.25rem;
}
.quote cite { font-style: normal; font-family: var(--display); color: #a9c6d8; font-size: 1rem; }

/* Interior pages */

.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); max-width: 18ch; }
.page-head .kicker { font-family: var(--display); font-weight: 600; color: var(--brand-deep); margin: 0 0 0.75rem; }

/* progress rail on step pages */
.rail { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; }
.rail a {
  display: block; text-decoration: none; color: var(--graphite);
  font-family: var(--display); font-size: 0.875rem; line-height: 1.3;
  border-top: 4px solid var(--rule); padding-top: 0.6rem;
}
.rail a:hover { color: var(--ink); border-top-color: var(--brand); }
.rail .done a { border-top-color: #8fcbe2; }
.rail [aria-current="step"] { border-top-color: var(--brand); color: var(--ink); font-weight: 600; }
.rail span { display: block; font-weight: 700; color: var(--brand-deep); }

.content { background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.content h2 { margin-top: 2.5rem; }
.content h2:first-child { margin-top: 0; }
.content .lead { font-size: 1.3125rem; }

.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: var(--measure); }
.checks li { position: relative; padding-left: 2rem; margin-bottom: 0.75rem; }
.checks li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.45em;
  width: 0.7rem; height: 0.4rem;
  border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand);
  transform: rotate(-45deg);
}

/* service sections on the presentation page */
.service { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-top: clamp(2.5rem, 6vw, 4rem); }
.service:first-child { margin-top: 0; }
.service h2 { margin-top: 0; }

.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4rem); }
.about-grid section { padding-top: 1.5rem; border-top: 2px solid var(--brand); margin-bottom: 2.5rem; }
.about-grid h2 { font-size: 1.5rem; margin-top: 0; }

/* previous / next step */
.pager { padding: 2.5rem 0; }
.pager .wrap { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.pager a { text-decoration: none; font-family: var(--display); color: var(--ink); max-width: 20rem; }
.pager a:hover h3 { color: var(--brand-deep); }
.pager small { display: block; color: var(--graphite); font-size: 0.9375rem; }
.pager h3 { margin: 0.15rem 0 0; font-size: 1.25rem; }
.pager .next { text-align: right; margin-left: auto; }

/* Footer */

.site-footer { padding: 2.5rem 0 3rem; color: var(--graphite); font-size: 0.9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.site-footer img { width: 11rem; }
.site-footer p { margin: 0; }

/* Small screens */

@media (max-width: 52rem) {
  .service, .about-grid, .process .wrap { grid-template-columns: minmax(0, 1fr); }
  /* photo on top, text on the board below it */
  .hero { display: block; min-height: 0; padding-top: 68vw; }
  .hero-bg { width: 100%; height: 82vw; object-position: 50% 20%; }
  .hero::before { background: linear-gradient(180deg, rgba(30, 31, 33, 0) 45vw, var(--board) 80vw); }
  .process-intro { position: static; }
  .hero h1 { max-width: none; }
  .rail { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .rail a { font-size: 0; }          /* keep the numbered segments, drop the names */
  .rail span { font-size: 0.875rem; }
}

@media (max-width: 30rem) {
  .logo img { width: 12rem; }
  .site-nav ul { gap: 1.25rem; }
  .steps li { grid-template-columns: 3.25rem minmax(0, 1fr); gap: 0 1rem; }
  .steps li::before { width: 3.25rem; height: 3.25rem; font-size: 1.6rem; }
  .steps li:not(:last-child)::after { left: calc(1.625rem - 1px); top: 3.25rem; }
  .pager .next { text-align: left; margin-left: 0; }
}
