/* Sawyer Systems — answering service site
   Direction: shop-floor industrial. Hi-vis amber on slate, signage typography,
   the phone number treated as the primary object because calling it IS the demo. */

:root {
  --ink:        oklch(17% 0.012 255);
  --ink-soft:   oklch(28% 0.014 255);
  --steel:      oklch(52% 0.018 255);
  --steel-dim:  oklch(64% 0.014 255);
  --paper:      oklch(97.5% 0.006 85);
  --paper-warm: oklch(94% 0.012 85);
  --line:       oklch(88% 0.008 255);
  --amber:      oklch(74% 0.172 62);
  --amber-deep: oklch(52% 0.138 48);
  --amber-glow: oklch(74% 0.172 62 / 0.18);

  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --h1:   clamp(2.3rem, 1.5rem + 2.6vw, 3.9rem);
  --h2:   clamp(1.6rem, 1.2rem + 1.5vw, 2.5rem);
  --h3:   clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  --lead: clamp(1.1rem, 1rem + 0.42vw, 1.32rem);
  --base: clamp(1rem, 0.96rem + 0.18vw, 1.09rem);

  --gutter:  clamp(1.15rem, 0.7rem + 2.2vw, 3rem);
  --section: clamp(3.4rem, 2.2rem + 4.2vw, 6.5rem);
  --measure: 34rem;
  --wide:    72rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--base);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -0.005em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--h1); text-transform: uppercase; }
h2 { font-size: var(--h2); text-transform: uppercase; }
h3 { font-size: var(--h3); font-family: var(--body); font-weight: 650; line-height: 1.3; text-transform: none; letter-spacing: 0; }
p  { margin: 0 0 1.1em; max-width: var(--measure); text-wrap: pretty; }

a { color: var(--amber-deep); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px;
}

/* ---------- hazard rule: the one repeated motif ---------- */
.hazard {
  height: 6px; border: 0; margin: 0;
  background: repeating-linear-gradient(135deg, var(--amber) 0 14px, var(--ink) 14px 28px);
}

/* ---------- masthead ---------- */
.masthead { background: var(--ink); color: var(--paper); }
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.95rem; flex-wrap: wrap;
}
.brand {
  font-family: var(--display); font-size: 1.32rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--paper); text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--amber); }
.masthead nav { display: flex; gap: clamp(0.85rem, 2vw, 1.7rem); flex-wrap: wrap; }
.masthead nav a {
  color: var(--steel-dim); text-decoration: none; font-size: 0.9rem;
  font-weight: 500; transition: color 140ms var(--ease);
}
.masthead nav a:hover, .masthead nav a[aria-current="page"] { color: var(--amber); }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto -10% -55% auto;
  width: 46rem; height: 46rem; border-radius: 50%;
  background: radial-gradient(circle, var(--amber-glow), transparent 68%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(2.4rem, 1.6rem + 2.6vw, 4rem); }
.hero .kicker {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.19em;
  font-size: 0.83rem; font-weight: 600; color: var(--amber); margin: 0 0 1rem;
}
.hero h1 { max-width: 20ch; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lead {
  font-size: var(--lead); color: var(--steel-dim);
  max-width: 46ch; margin-top: 1.1rem;
}
/* on a wide screen put the pitch and the number side by side so the
   number is never pushed below the fold */
@media (min-width: 64rem) {
  .hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
  .hero .kicker, .hero h1, .hero .lead { grid-column: 1; }
  .hero .kicker { margin-bottom: 0.6rem; }
  .hero .dial { grid-column: 2; grid-row: 1 / span 3; justify-self: start; margin-top: 0; }
}

/* the number IS the product */
.dial {
  display: inline-flex; flex-direction: column; gap: 0.3rem;
  margin-top: clamp(1.8rem, 1rem + 2.5vw, 2.8rem);
  padding: 1.15rem 1.6rem 1.3rem;
  border: 2px solid var(--amber);
  background: oklch(22% 0.014 255 / 0.72);
  text-decoration: none; color: var(--paper);
  transition: background 160ms var(--ease), transform 160ms var(--ease);
}
.dial:hover { background: var(--amber); color: var(--ink); transform: translateY(-2px); }
.dial:hover .dial-label { color: var(--ink); }
.dial-label {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.15em;
  font-size: 0.76rem; font-weight: 600; color: var(--amber); transition: color 160ms var(--ease);
}
.dial-num {
  font-family: var(--display); font-weight: 700; line-height: 1;
  font-size: clamp(2.3rem, 1.3rem + 3.6vw, 3.9rem); letter-spacing: 0.005em;
}
.dial-note { font-size: 0.88rem; color: inherit; opacity: 0.78; }

/* ---------- sections ---------- */
main section { padding-block: var(--section); }
main section + section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: clamp(1.6rem, 1rem + 2vw, 2.6rem); }
.section-head p { color: var(--steel); font-size: var(--lead); margin-top: 0.7rem; }
.tint { background: var(--paper-warm); }

/* ---------- editorial split ---------- */
.split { display: grid; gap: clamp(1.6rem, 1rem + 3vw, 3.4rem); align-items: start; }
@media (min-width: 60rem) { .split { grid-template-columns: 1.05fr 0.95fr; } }

/* ---------- cards ---------- */
.cards { display: grid; gap: 1.15rem; }
@media (min-width: 46rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  padding: 1.45rem 1.35rem 1.15rem;
  transition: transform 170ms var(--ease), box-shadow 170ms var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px oklch(17% 0.012 255 / 0.1); }
.card h3 { margin-bottom: 0.45rem; }
.card p { font-size: 0.97rem; color: var(--ink-soft); margin-bottom: 0; }
.card .num {
  font-family: var(--display); font-size: 2.1rem; font-weight: 700;
  color: var(--amber-deep); line-height: 1; display: block; margin-bottom: 0.35rem;
}

/* ---------- price block ---------- */
.price {
  border: 2px solid var(--ink); background: var(--paper);
  padding: clamp(1.5rem, 1rem + 2vw, 2.4rem); max-width: 40rem;
}
.price-tag {
  font-family: var(--display); font-weight: 700; line-height: 1;
  font-size: clamp(3rem, 2rem + 4vw, 4.6rem);
}
.price-tag small { font-size: 0.28em; color: var(--steel); font-weight: 600; letter-spacing: 0.04em; }
.price ul { list-style: none; padding: 0; margin: 1.3rem 0 0; display: grid; gap: 0.6rem; }
.price li { padding-left: 1.7rem; position: relative; }
.price li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.85rem; height: 2px; background: var(--amber);
}

/* ---------- prose lists ---------- */
.checks { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: 0.7rem; max-width: var(--measure); }
.checks li { padding-left: 1.75rem; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.52em;
  width: 0.9rem; height: 0.9rem; background: var(--amber);
  clip-path: polygon(14% 46%, 0 60%, 40% 100%, 100% 22%, 86% 8%, 38% 70%);
}

/* ---------- towns ---------- */
.towns { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; list-style: none; }
.towns li a {
  display: inline-block; padding: 0.4rem 0.85rem; border: 1px solid var(--line);
  background: var(--paper); font-size: 0.92rem; text-decoration: none; color: var(--ink-soft);
  transition: border-color 140ms var(--ease), color 140ms var(--ease);
}
.towns li a:hover { border-color: var(--amber); color: var(--ink); }

/* ---------- CTA band ---------- */
.band { background: var(--ink); color: var(--paper); }
.band h2 { color: var(--paper); }
.band p { color: var(--steel-dim); }

/* ---------- footer ---------- */
footer { background: var(--ink); color: var(--steel-dim); font-size: 0.92rem; }
footer .wrap { padding-block: 2.4rem; display: grid; gap: 1.3rem; }
@media (min-width: 52rem) { footer .wrap { grid-template-columns: 1.4fr 1fr; } }
footer a { color: var(--steel-dim); }
footer a:hover { color: var(--amber); }
footer nav { display: grid; gap: 0.45rem; }
footer .fine { color: var(--steel-dim); font-size: 0.85rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -999px; top: 0; z-index: 99;
  background: var(--amber); color: var(--ink); padding: 0.7rem 1.1rem; font-weight: 600;
}
.skip:focus { left: 0; }
