/* MechanicsPAD site. Shop-floor look taken from the logo: black, red, heavy slanted lettering. */
:root {
  --ink: #111111;
  --paper: #f4f2ec;
  --card: #ffffff;
  --red: #d7141a;
  --red-deep: #a90f14;
  --steel: #565b61;
  --line: #d6d1c5;
  --on-dark-soft: #c9c9c9;
  --bubble: #e9e9eb;

  --display: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", sans-serif-condensed, Impact, sans-serif;
  --body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --lean: 14px;            /* how far the slanted edges lean, matching the logo block */
  --gutter: 1.25rem;
  --wide: 68rem;
  --section: clamp(3rem, 2rem + 5vw, 6rem);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.6 var(--body);
}

img { max-width: 100%; height: auto; }
a { color: var(--red-deep); }
a:focus-visible, .button:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

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

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1; margin: 0; }
h2 { font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); font-style: italic; text-transform: uppercase; }
h3 { font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.01em; }
.kicker {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.95rem; color: var(--red); margin: 0 0 0.6rem;
}

/* Slanted button, same lean as the logo's red block. */
.button {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  background: var(--red);
  color: #fff;
  font-family: var(--display); font-weight: 800; font-style: italic;
  font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.03em; text-decoration: none;
  clip-path: polygon(var(--lean) 0, 100% 0, calc(100% - var(--lean)) 100%, 0 100%);
  transition: background-color 150ms, transform 150ms;
}
.button:hover { background: var(--red-deep); transform: translateX(3px); }
.button:active { transform: translateX(0); }
.button.light { background: #fff; color: var(--ink); }
.button.light:hover { background: var(--paper); }
.text-link { color: #fff; font-weight: 600; }

/* Top bar */
.top { background: var(--ink); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.top img { display: block; width: min(15rem, 56vw); }
.top a.contact { color: #fff; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1rem; white-space: nowrap; }

/* Hero: black, with a slanted bottom edge */
.hero {
  background: var(--ink); color: #fff;
  padding: clamp(2rem, 1rem + 5vw, 4.5rem) 0 calc(var(--section) + 2rem);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.5vw), 0 100%);
}
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 1.2rem + 7.5vw, 5.4rem); font-style: italic; text-transform: uppercase; line-height: 0.95; }
.hero h1 .block {
  display: inline-block; background: var(--red); padding: 0.04em 0.28em 0.08em; margin: 0.08em 0 0 -0.1em;
  clip-path: polygon(var(--lean) 0, 100% 0, calc(100% - var(--lean)) 100%, 0 100%);
}
.hero .lead { font-size: 1.2rem; color: var(--on-dark-soft); max-width: 34rem; margin: 1.4rem 0 1.8rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

/* Payoff band: red, tucked under the hero's slanted edge */
.hero { position: relative; z-index: 1; }
.payoff {
  background: var(--red); color: #fff;
  margin-top: -3.6vw;
  padding: calc(3.6vw + clamp(2.5rem, 1.5rem + 4vw, 4.5rem)) 0 clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}
.payoff h2 { font-size: clamp(2.7rem, 1rem + 8.5vw, 6.2rem); line-height: 0.95; }
.payoff h2 .block {
  display: inline-block; background: #fff; color: var(--ink); padding: 0.04em 0.28em 0.08em; margin: 0.08em 0 0 -0.1em;
  clip-path: polygon(var(--lean) 0, 100% 0, calc(100% - var(--lean)) 100%, 0 100%);
}
.payoff p { font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); font-weight: 600; line-height: 1.35; max-width: 38rem; margin: 1.3rem 0 1.7rem; }
.payoff p.aside { font-family: var(--display); font-weight: 800; font-style: italic; font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); line-height: 1.2; margin: -1.1rem 0 1.7rem; max-width: none; }
.button.dark { background: var(--ink); }
.button.dark:hover { background: #333; }

/* Example text thread */
.phone { background: var(--card); color: var(--ink); border-radius: 22px; padding: 1.1rem 1rem 1.25rem; margin: 0; max-width: 23rem; width: 100%; justify-self: center; box-shadow: 10px 10px 0 var(--red); }
.phone figcaption { font-size: 0.8rem; color: var(--steel); text-align: center; border-bottom: 1px solid var(--line); padding-bottom: 0.6rem; margin-bottom: 0.9rem; }
.phone figcaption b { display: block; color: var(--ink); font-size: 0.95rem; }
.thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; font-size: 0.95rem; line-height: 1.35; }
.thread li { max-width: 84%; padding: 0.5rem 0.75rem; border-radius: 16px; background: var(--bubble); justify-self: start; }
.thread li.them { background: var(--red); color: #fff; justify-self: end; }
.phone .note { font-size: 0.8rem; color: var(--steel); margin: 0.9rem 0 0; text-align: center; }

/* Sections */
section { padding: var(--section) 0; }
.section-head { max-width: 40rem; margin-bottom: 2.2rem; }
.section-head p { color: var(--steel); margin: 0.9rem 0 0; }
.section-head p.kicker { color: var(--red); margin: 0 0 0.6rem; }

/* How it works: numbered steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
.steps li { counter-increment: step; background: var(--card); border-top: 6px solid var(--ink); padding: 1.2rem 1.25rem 1.4rem; }
.steps li::before {
  content: counter(step); display: block;
  font-family: var(--display); font-weight: 800; font-style: italic; font-size: 4rem; line-height: 0.9; color: var(--red);
}
.steps h3 { margin: 0.5rem 0 0.5rem; }
.steps p { margin: 0; }
.steps li:nth-child(even) { border-top-color: var(--red); }

/* Runs the day: two lists on black */
.day { background: var(--ink); color: #fff; clip-path: polygon(0 3.5vw, 100% 0, 100% 100%, 0 100%); padding-top: calc(var(--section) + 3.5vw); }
.day .section-head p { color: var(--on-dark-soft); }
.day .section-head p.kicker { color: var(--red); }
.columns { display: grid; gap: 2rem; }
.columns h3 { color: var(--red); margin-bottom: 0.8rem; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { padding: 0.7rem 0 0.7rem 1.6rem; border-top: 1px solid #333; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 0.85rem; height: 0.5rem; background: var(--red); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); }

/* Straight answers */
.answers { display: grid; gap: 1.5rem 2.5rem; margin: 0; }
.answers div { border-left: 6px solid var(--red); padding-left: 1rem; }
.answers dt { font-family: var(--display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; }
.answers dd { margin: 0.3rem 0 0; }

/* Where it stands */
.status { background: var(--card); border-top: 6px solid var(--ink); padding: 2.2rem 0; }
.status p { margin: 0; font-size: 1.15rem; max-width: 46rem; }
.status b { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 0.3rem; color: var(--red); }

/* Demo and contact */
.demo { background: var(--ink); color: #fff; text-align: center; }
.demo p { color: var(--on-dark-soft); max-width: 36rem; margin: 1rem auto 1.8rem; }
.demo .small { font-size: 0.95rem; margin-top: 1.4rem; }
.demo .small a { color: #fff; }

footer { background: var(--ink); color: var(--on-dark-soft); border-top: 1px solid #333; padding: 1.5rem 0 2.5rem; font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
footer p { margin: 0; }
footer a { color: var(--on-dark-soft); }

/* Privacy and terms pages */
.legal { max-width: 42rem; margin: 0 auto; padding: 2.5rem var(--gutter) 4rem; }
.legal h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.2rem); font-style: italic; text-transform: uppercase; }
.legal h2 { font-size: 1.4rem; font-style: normal; margin: 2rem 0 0.5rem; }
.legal .lead { color: var(--steel); margin-top: 0.6rem; }

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .columns, .answers { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: 1.25fr 0.75fr; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li:nth-child(even) { transform: translateY(1.25rem); }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:hover { transform: none; }
}
