/* site.css: automaticmanufacturing.com. Brand: black strip, yellow header (#ffcc01), white page. System fonts, nothing external. */
:root {
  --yellow: #ffcc01;
  --yellow-dark: #e6b800;
  --black: #0b0b0b;
  --ink: #111;
  --muted: #5f5f5a;
  --line: #e4e4de;
  --panel: #f6f6f2;
  --sans: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; }
a { color: inherit; }
img { display: block; }

.strip { height: 22px; background: var(--black); }
.brand { background: var(--yellow); padding: 18px 20px; display: flex; justify-content: center; box-shadow: 0 2px 4px rgba(0,0,0,.08); }
.brand img { height: 76px; }

/* hero: the microfactory runs full width under the header; the headline sits on a panel over its upper left (the
   back wall and windows are calm there); on phones the headline comes first and the hall below it */
.hero { position: relative; }
.hero-text { position: absolute; z-index: 2; top: 26px; left: max(20px, calc((100% - 1120px) / 2 + 20px)); max-width: 470px;
  background: rgba(255, 255, 255, .92); padding: 18px 24px 22px; border-left: 8px solid var(--yellow); box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.hero h1 { font-size: 2.3rem; line-height: 1.1; margin: 0 0 6px; letter-spacing: -.01em; }
.hero p { font-size: 1.15rem; color: var(--muted); margin: 0 0 16px; }
@media (max-width: 760px) {
  .hero-text { position: static; max-width: none; background: none; box-shadow: none; border-left: 0; padding: 26px 20px 18px; }
  .hero h1 { font-size: 2.2rem; }
}
.button { display: inline-block; background: var(--yellow); color: var(--black); font-weight: 700; padding: 13px 26px; text-decoration: none; border: 2px solid var(--yellow); }
.button:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }
.button:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }

.line { position: relative; background: #e4e4de; border-bottom: 1px solid var(--line); }
.line canvas { display: block; width: 100%; height: clamp(400px, 70vh, 860px); touch-action: pan-y; }
@media (max-width: 760px) { .line canvas { height: clamp(380px, 62vh, 620px); } }
.line-counter { padding: 8px 12px; background: #fff; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }
.line-counter span { color: var(--black); font-weight: 700; }

main { max-width: 1120px; margin: 0 auto; padding: 24px 20px 48px; }
section { margin-bottom: 44px; }
h2 { font-size: 1.7rem; margin: 0 0 18px; border-left: 8px solid var(--yellow); padding-left: 14px; line-height: 1.2; }

.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.cards li { background: var(--panel); border: 1px solid var(--line); padding: 18px; }
.cards strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.cards span { color: var(--muted); }

.materials { list-style: none; padding: 0; margin: 0; }
.materials li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.materials strong { display: inline-block; min-width: 150px; }

.cta { text-align: center; margin-top: 10px; }

footer { border-top: 1px solid var(--line); padding: 22px 20px 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: .95rem; }
footer a { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { .line-counter { display: none; } }

/* quote form */
main.narrow { max-width: 760px; }
.lead { color: var(--muted); margin-top: -6px; }
.quote label { display: block; margin: 0 0 14px; font-weight: 600; }
.quote .req { font-weight: 400; color: var(--muted); font-size: .85rem; margin-left: 6px; }
.quote input, .quote textarea { display: block; width: 100%; margin-top: 6px; padding: 12px; font: inherit; border: 2px solid var(--line); background: #fff; color: var(--ink); }
.quote input:focus, .quote textarea:focus { outline: none; border-color: var(--yellow); }
.quote .row2 { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 640px) { .quote .row2 { grid-template-columns: 1fr 1fr; } }
.quote .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote .button { margin-top: 6px; }
.quote .note { color: var(--muted); font-size: .9rem; }
.errors { border: 2px solid var(--yellow); background: #fff8d6; padding: 10px 16px; margin-bottom: 16px; }
.errors ul { margin: 0; padding-left: 18px; }
.sent h2 { border-left-color: var(--yellow); }
footer .fine { width: 100%; text-align: center; font-size: .8rem; color: var(--muted); }
