/* Waley Machinery — selection guide
   Mobile-first, single page, no external dependencies, no JavaScript. */

:root {
  --ink: #1a2230;
  --ink-soft: #3d4a61;
  --bg: #ffffff;
  --bg-alt: #f2f4f7;
  --line: #dfe4ec;
  --accent: #e8641b;      /* industrial safety orange */
  --accent-dark: #c24f10;
  --header-bg: #141b28;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- header ---------- */
.site-header {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 12px;
}
.brand {
  color: #fff;
  font-weight: 800;
  letter-spacing: 2px;
  text-decoration: none;
  font-size: 18px;
  white-space: nowrap;
}
.brand span { color: var(--accent); font-weight: 400; letter-spacing: 1px; }
.main-nav { display: flex; gap: 4px; overflow-x: auto; }
.main-nav a {
  color: #cfd6e2;
  text-decoration: none;
  padding: 8px 10px;
  font-size: 14px;
  white-space: nowrap;
}
.main-nav a:hover { color: #fff; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(160deg, #141b28 0%, #24304a 70%, #2e3d5c 100%);
  color: #fff;
  padding: 64px 0 48px;
}
.kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(28px, 6vw, 48px);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}
.lede { color: #c6cfdd; font-size: 18px; max-width: 680px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: #5b6b86; color: #fff; }
.btn-ghost:hover { border-color: #fff; }

/* Ghost button on light-gray sections needs dark text to stay readable. */
.section-alt .btn-ghost { color: var(--ink); border-color: #9aa7bb; }
.section-alt .btn-ghost:hover { border-color: var(--ink); }

/* Narrow screens: let the header wrap instead of squeezing brand and nav. */
@media (max-width: 600px) {
  .header-inner { flex-wrap: wrap; row-gap: 2px; padding-top: 8px; padding-bottom: 8px; }
  .main-nav { width: 100%; }
  .brand { font-size: 16px; }
}

/* ---------- sections ---------- */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 {
  font-size: 28px;
  margin: 0 0 16px;
  letter-spacing: -0.3px;
}
.section-intro { color: var(--ink-soft); max-width: 720px; }

.text-link { color: var(--accent-dark); font-weight: 600; }

/* process diagram */
.process-diagram {
  width: 100%;
  max-width: 640px;
  height: auto;
  display: block;
  margin: 20px 0 0;
}
@media (max-width: 560px) {
  .process-diagram { max-width: 100%; }
}

/* machine cards */
.machine-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}
.machine-card h3 { margin: 0 0 8px; font-size: 20px; }
.machine-card h3::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--accent);
  margin-right: 10px;
  border-radius: 2px;
}

/* checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  counter-reset: none;
}
.checklist li {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 16px;
}
.checklist h3 { margin: 0 0 6px; font-size: 18px; }
.checklist p { margin: 0; color: var(--ink-soft); }

/* applications */
.app-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
}
.app-grid li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.app-grid span { color: var(--ink-soft); font-size: 14px; }

/* FAQ */
.faq h3 {
  font-size: 18px;
  margin: 28px 0 6px;
}
.faq h3:first-child { margin-top: 8px; }
.faq p { margin: 0 0 8px; color: var(--ink-soft); max-width: 760px; }

.fineprint { font-size: 13px; color: #7b879c; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--header-bg);
  color: #93a1b8;
  padding: 32px 0;
  font-size: 14px;
}
.site-footer p { margin: 4px 0; }

/* Pre-publication accessibility adjustments by dot, 2026-10-14. */
section[id], main[id] { scroll-margin-top: 112px; }
.process-steps-mobile { display: none; }
@media (max-width: 560px) {
  .process-diagram { display: none; }
  .process-steps-mobile { display: grid; gap: 12px; list-style: none; padding: 0; margin: 20px 0 0; }
  .process-steps-mobile li { border: 1px solid var(--line); background: var(--bg-alt); border-radius: var(--radius); padding: 16px; }
  .process-steps-mobile strong, .process-steps-mobile span { display: block; }
  .process-steps-mobile span { color: var(--ink-soft); }
}
