/* Yates Werx site. Option B Shop Plate, colorway 10 Sky. Locked palette. */
/* Sky Cyan and white are never used as text on a light background. */
/* Sky Cyan on Mist is 1.79:1 (fail). White on Sky Cyan is 2.06:1 (fail). */

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-bold.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/barlow-condensed-extrabold.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/barlow-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/barlow-medium.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-medium.woff2") format("woff2");
}

:root {
  --graphite: #1C2023;
  --pewter: #48525A;
  --mist: #EAF0F3;
  --sky: #22C3F5;
  --white: #FFFFFF;
  --card: #FFFFFF;
  --header-h: 4.15rem;
  --space: 1.25rem;
  --wide: 72rem;
  --text: 42rem;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --sans: "Barlow", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", "Menlo", "Consolas", monospace;
  --chamfer: 14px;
  --radius: 0;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--graphite);
  background: var(--mist);
}

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

a { color: var(--graphite); text-underline-offset: 0.16em; }
a:hover { text-decoration-thickness: 2px; }

/* Focus: Graphite ring on light, Sky ring on dark. Never Sky text on Mist. */
:where(a, button, summary, input, textarea):focus-visible {
  outline: 3px solid var(--graphite);
  outline-offset: 3px;
}

.band-dark :where(a, button, summary):focus-visible,
.site-header :where(a, button, summary):focus-visible,
.site-footer :where(a, button, summary):focus-visible {
  outline-color: var(--sky);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -5rem;
  z-index: 80;
  background: var(--sky);
  color: var(--graphite);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.55rem 0.9rem;
}

.skip:focus { top: 0.75rem; }

.wrap {
  width: min(100% - (var(--space) * 2), var(--wide));
  margin-inline: auto;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--graphite);
  border-bottom: 1px solid #2A3035;
  box-shadow: 0 1px 0 var(--sky);
}

.header-inner {
  width: min(100% - (var(--space) * 2), var(--wide));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.wordmark {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 4.75rem);
  line-height: 0;
  text-decoration: none;
}

.wordmark img {
  display: block;
  height: 2rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 44rem) {
  .wordmark { flex: 0 1 auto; max-width: 18rem; }
  .wordmark img { height: 2.35rem; }
}

.nav-wide {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

.nav-wide a {
  color: var(--mist);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 0.7rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.nav-wide a:hover { color: var(--sky); }
.nav-wide a[aria-current="page"] {
  color: var(--sky);
  box-shadow: inset 0 -2px 0 var(--sky);
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--pewter);
  background: transparent;
  color: var(--mist);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-btn:hover,
.menu-btn[aria-expanded="true"] { border-color: var(--sky); color: var(--sky); }

.nav-panel {
  display: none;
  background: var(--graphite);
  border-bottom: 1px solid var(--pewter);
  padding: 0.4rem 0 0.9rem;
}

.nav-panel.is-open { display: block; }

.nav-panel nav {
  width: min(100% - (var(--space) * 2), var(--wide));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

.nav-panel a {
  color: var(--mist);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 0.15rem;
  border-bottom: 1px solid #2A3035;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
}

.nav-panel a:hover,
.nav-panel a[aria-current="page"] { color: var(--sky); }

@media (min-width: 44rem) {
  .menu-btn, .nav-panel, .nav-panel.is-open { display: none; }
  .nav-wide { display: flex; }
}

/* ---- Bands ---- */
.band {
  position: relative;
  padding: 3.25rem 0 3.5rem;
}

.band-dark {
  background-color: var(--graphite);
  color: var(--mist);
  background-image:
    linear-gradient(rgba(34, 195, 245, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 195, 245, 0.055) 1px, transparent 1px);
  background-size: 40px 40px;
}

.band-mist { background: var(--mist); color: var(--graphite); }

/* Text links on Graphite may be Sky (7.96:1). Never Sky on Mist. */
/* Do not let this override plate buttons (Graphite on Sky). */
.band-dark a:not(.btn):not(.email-plate) { color: var(--sky); }
.band-dark a:not(.btn):not(.email-plate):hover { color: var(--mist); }

.kicker {
  margin: 0 0 0.65rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.band-dark .kicker { color: var(--sky); }
.band-mist .kicker { color: var(--pewter); }

.hero-tagline,
.band-dark .hero-tagline {
  color: var(--mist);
  margin: 0 0 1.1rem;
}

.hero-tagline::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  margin-top: 0.7rem;
  background: var(--sky);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 0.85rem;
}

h1 { font-size: clamp(2.35rem, 8vw, 5.25rem); }
h2 { font-size: clamp(1.85rem, 5vw, 3.15rem); }
h3 { font-size: 1.65rem; line-height: 1.15; }

.lead {
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 0 0 1.4rem;
  max-width: 38rem;
}

.band-mist .lead { color: var(--pewter); }
.band-dark .lead { color: var(--mist); }

.prose { max-width: var(--text); }
.prose p { margin: 0 0 1rem; }
.prose ul { margin: 0 0 1.25rem; padding-left: 0; list-style: none; }
.prose li {
  position: relative;
  margin: 0.55rem 0;
  padding-left: 1.35rem;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.65rem;
  height: 0.65rem;
  background: var(--sky);
  clip-path: polygon(0 0, calc(100% - 3px) 0, 100% 3px, 100% 100%, 0 100%);
}

/* ---- Buttons ---- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

/* About page: LinkedIn bug + word, Graphite on Mist. Never Sky or white text. */
.linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 3rem;
  color: var(--graphite);
  text-decoration: none;
}
.linkedin svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: block;
}
.linkedin span {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.linkedin:hover {
  color: var(--pewter);
}
.linkedin:hover span {
  text-decoration-thickness: 2px;
}

.btn {
  --btn-cut: var(--chamfer);
  --btn-bw: 2px;
  --btn-edge: var(--sky);
  --btn-fill: var(--sky);
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  background: var(--btn-edge);
  color: var(--graphite);
  clip-path: polygon(0 0, calc(100% - var(--btn-cut)) 0, 100% var(--btn-cut), 100% 100%, 0 100%);
  position: relative;
}

.btn::before {
  content: "";
  position: absolute;
  inset: var(--btn-bw);
  background: var(--btn-fill);
  clip-path: polygon(0 0, calc(100% - (var(--btn-cut) - var(--btn-bw) * 0.586)) 0, 100% calc(var(--btn-cut) - var(--btn-bw) * 0.586), 100% 100%, 0 100%);
  z-index: -1;
  pointer-events: none;
}

.btn-primary {
  --btn-edge: var(--sky);
  --btn-fill: var(--sky);
  color: var(--graphite);
}

.btn-primary:hover {
  --btn-edge: var(--mist);
  --btn-fill: var(--mist);
  color: var(--graphite);
}

.btn-secondary {
  --btn-edge: var(--mist);
  --btn-fill: var(--graphite);
  color: var(--mist);
}

.btn-secondary:hover {
  --btn-edge: var(--sky);
  --btn-fill: var(--graphite);
  color: var(--sky);
}

/* Plate button on a mist band: Sky fill, Graphite text. No Sky text. */
.band-mist .btn-primary,
.btn-primary.on-light {
  --btn-edge: var(--sky);
  --btn-fill: var(--sky);
  color: var(--graphite);
}

.band-mist .btn-primary:hover,
.btn-primary.on-light:hover {
  --btn-edge: var(--graphite);
  --btn-fill: var(--graphite);
  color: var(--mist);
}

.band-mist .btn-secondary,
.card .btn-secondary {
  --btn-edge: var(--graphite);
  --btn-fill: var(--card);
  color: var(--graphite);
}

.band-mist .btn-secondary {
  --btn-fill: var(--mist);
}

.card .btn-secondary {
  --btn-fill: var(--card);
}

.band-mist .btn-secondary:hover,
.card .btn-secondary:hover {
  --btn-edge: var(--pewter);
  color: var(--pewter);
}

/* ---- Hero ---- */
.hero {
  padding: 2.75rem 0 3rem;
}

.hero-home {
  min-height: 28rem;
  padding: 3rem 0 3.5rem;
}

@media (min-width: 44rem) {
  .hero { padding: 3.5rem 0 3.75rem; }
  .hero-home {
    min-height: calc(100svh - var(--header-h) - 2rem);
    display: flex;
    align-items: center;
    padding: 4.5rem 0 5rem;
  }
}

.hero-inner {
  width: min(100% - (var(--space) * 2), var(--wide));
  margin-inline: auto;
  border-left: 6px solid var(--sky);
  padding-left: clamp(1rem, 3vw, 1.75rem);
}

.hero-mark {
  display: block;
  width: min(100%, 28rem);
  height: auto;
  margin: 0 0 1.75rem;
}

@media (min-width: 44rem) {
  .hero-mark { width: min(100%, 36rem); margin-bottom: 2.15rem; }
}

.hero h1 { max-width: 16ch; }
.hero .lead { font-size: 1.2rem; max-width: 36rem; }

/* Corner rivets on the home hero, echoing the social covers. */
.hero-home {
  position: relative;
}

.hero-home::before,
.hero-home::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #A9B4BC 0%, #6B7780 40%, #2A3035 100%);
  box-shadow: 0 0 0 1px #2A3035;
  pointer-events: none;
}

.hero-home::before { top: 1rem; left: 1rem; }
.hero-home::after { top: 1rem; right: 1rem; }

@media (min-width: 44rem) {
  .hero-home::before { top: 1.35rem; left: 1.35rem; }
  .hero-home::after { top: 1.35rem; right: 1.35rem; }
}

/* ---- Cards ---- */
.section-head { margin-bottom: 1.6rem; }
.section-head h2 { margin-bottom: 0.5rem; }

.card-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

@media (min-width: 44rem) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}

.card {
  --card-cut: 16px;
  --card-bw: 2px;
  isolation: isolate;
  position: relative;
  background: var(--pewter);
  color: var(--graphite);
  border: none;
  padding: 1.5rem 1.35rem 1.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 100%;
  clip-path: polygon(0 0, calc(100% - var(--card-cut)) 0, 100% var(--card-cut), 100% 100%, 0 100%);
}

.card::before {
  content: "";
  position: absolute;
  inset: var(--card-bw);
  background: var(--card);
  clip-path: polygon(0 0, calc(100% - (var(--card-cut) - var(--card-bw) * 0.586)) 0, 100% calc(var(--card-cut) - var(--card-bw) * 0.586), 100% 100%, 0 100%);
  z-index: -1;
  pointer-events: none;
}

.card .icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--graphite);
}

.card .icon svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.card h2, .card h3 { margin: 0; font-size: 1.85rem; }
.card p { margin: 0; color: var(--pewter); flex: 1; }
.card .btn { align-self: flex-start; margin-top: 0.4rem; }

/* rivets */
.card .rivets { pointer-events: none; }
.card .rivets span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pewter);
  box-shadow: inset 0 0 0 1.5px var(--graphite);
}
.card .rivets .tl { top: 8px; left: 8px; }
.card .rivets .bl { bottom: 8px; left: 8px; }
.card .rivets .br { bottom: 8px; right: 8px; }

/* ---- How it works ---- */
.steps {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

@media (min-width: 60rem) {
  .steps { grid-template-columns: 1fr 1fr 1fr; }
}

.step {
  border: 1px solid #2A3035;
  background: rgba(0, 0, 0, 0.18);
  padding: 1.35rem 1.2rem 1.45rem;
  height: 100%;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 2.15rem;
  padding: 0 0.7rem;
  margin-bottom: 0.9rem;
  background: var(--sky);
  color: var(--graphite);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.step h3 { color: var(--mist); margin: 0 0 0.5rem; }
.step p { margin: 0; color: var(--mist); }

/* ---- CTA band ---- */
.cta-panel {
  width: min(100% - (var(--space) * 2), var(--wide));
  margin: 0 auto;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--graphite);
  color: var(--mist);
  padding: 2.5rem 0 2rem;
  border-top: 3px solid var(--sky);
  background-image:
    linear-gradient(rgba(34, 195, 245, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 195, 245, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.footer-inner {
  width: min(100% - (var(--space) * 2), var(--wide));
  margin-inline: auto;
  display: grid;
  gap: 1.5rem 2rem;
}

@media (min-width: 44rem) {
  .footer-inner { grid-template-columns: auto 1fr auto; align-items: start; }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--mist);
}

.footer-brand img.icon {
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
}

.footer-brand .name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mist);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

.footer-nav a {
  color: var(--mist);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.footer-nav a:hover { color: var(--sky); }

.site-footer a.email {
  color: var(--mist);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  font-size: 1rem;
}

.site-footer a.email:hover { color: var(--sky); }

.footer-meta { color: var(--mist); font-size: 0.95rem; }
.footer-meta .email { display: inline-block; margin: 0.2rem 0; overflow-wrap: anywhere; }

/* Email block on contact */
.email-plate {
  --btn-cut: var(--chamfer);
  --btn-bw: 2px;
  --btn-edge: var(--sky);
  --btn-fill: var(--sky);
  isolation: isolate;
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 1.25rem 0 1.5rem;
  padding: 0.95rem 1.3rem;
  background: var(--btn-edge);
  color: var(--graphite);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  clip-path: polygon(0 0, calc(100% - var(--btn-cut)) 0, 100% var(--btn-cut), 100% 100%, 0 100%);
  overflow-wrap: anywhere;
}

.email-plate::before {
  content: "";
  position: absolute;
  inset: var(--btn-bw);
  background: var(--btn-fill);
  clip-path: polygon(0 0, calc(100% - (var(--btn-cut) - var(--btn-bw) * 0.586)) 0, 100% calc(var(--btn-cut) - var(--btn-bw) * 0.586), 100% 100%, 0 100%);
  z-index: -1;
  pointer-events: none;
}

.email-plate:hover { --btn-edge: var(--graphite); --btn-fill: var(--graphite); color: var(--mist); }

@media (max-width: 22.5rem) {
  body { font-size: 1.0625rem; }
  .wordmark img { height: 1.75rem; }
  h1 { font-size: 2.1rem; }
}


/* ---- Website prices ---- */
.price-grid { margin-bottom: 1.25rem; }

.card .price-line {
  margin: 0;
  color: var(--graphite);
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  width: 100%;
}

.card .price-label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pewter);
}

.card .price-figure {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--graphite);
}

.card .price-note {
  color: var(--pewter);
  font-size: 1rem;
}

.price-sub {
  margin: 0.4rem 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--graphite);
}

.price-include {
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-include li {
  position: relative;
  margin: 0.45rem 0;
  padding-left: 1.35rem;
  color: var(--graphite);
  font-size: 1.05rem;
  line-height: 1.5;
}

.price-include li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.65rem;
  height: 0.65rem;
  background: var(--sky);
  clip-path: polygon(0 0, calc(100% - 3px) 0, 100% 3px, 100% 100%, 0 100%);
}

.founding-clause {
  margin: 0 0 1.25rem;
  padding: 1.2rem 1.25rem 1.3rem;
  background: var(--white);
  color: var(--graphite);
  border: 2px solid var(--pewter);
  border-left: 6px solid var(--sky);
  max-width: 52rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.care-card { margin: 0 0 1.25rem; }

.price-meta {
  max-width: 46rem;
  margin: 0 0 1.25rem;
}

.price-meta p {
  margin: 0 0 0.75rem;
  color: var(--graphite);
}

/* Six nav items: slightly tighter mid-width so the bar does not overflow. */
@media (min-width: 44rem) and (max-width: 64rem) {
  .nav-wide { gap: 0; }
  .nav-wide a {
    padding: 0.55rem 0.45rem;
    font-size: 0.98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
