/* GreentagQC landing page.
   Concrete and galvanized steel for the page, the brand green for the inspection tag.
   One typeface, Archivo, used across its width axis: expanded for headlines,
   normal for reading, condensed for the printed fields on the tag. */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
}

:root {
  --concrete: #E4E7E2;
  --slab: #D3D8D1;
  --paper: #F6F7F4;
  --ink: #17221C;
  --steel: #4F5C55;
  --tag: #177A42;
  --tag-deep: #0F5A30;
  --tag-ink: #F1F7F2;
  --hold: #E2A31B;
  --focus: #1C5FD6;
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--concrete); color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif; font-stretch: 100%; font-size: 1.0625rem; line-height: 1.55;
}
img, svg { display: block; }
a { color: var(--tag-deep); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 5; }
.skip:focus { top: 1rem; }

h1, h2, h3 { font-stretch: 125%; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 1.2rem + 4.6vw, 4.6rem); font-weight: 800; max-width: 13ch; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); font-weight: 750; max-width: 20ch; }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
p { margin: 0; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .7rem 1.3rem;
  font: inherit; font-weight: 650; font-stretch: 110%; text-decoration: none; border-radius: 4px; cursor: pointer; border: 2px solid transparent;
}
.btn-go { background: var(--tag); color: #fff; }
.btn-go:hover { background: var(--tag-deep); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-quiet { border-color: var(--slab); color: var(--ink); min-height: 2.4rem; padding: .4rem 1rem; }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }

/* ---------------------------------------------------------------- top bar */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 3rem); }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 800; font-stretch: 115%; font-size: 1.2rem; }
.bar nav { display: flex; align-items: center; gap: clamp(.8rem, 2.5vw, 1.8rem); }
.bar nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 550; }
.bar nav a:not(.btn):hover { text-decoration: underline; }
@media (max-width: 560px) { .bar nav a:not(.btn) { display: none; } }

main { overflow-x: clip; }   /* the tilted tag must not widen the page on a phone */
main > section { padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem); }

/* ---------------------------------------------------------------- hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: start;
  max-width: 76rem; margin: 0 auto; padding-top: clamp(2rem, 5vw, 4rem) !important;
}
.hero-text { padding-top: clamp(0rem, 3vw, 2.5rem); }
.lede { margin-top: 1.5rem; max-width: var(--measure); font-size: 1.2rem; color: var(--steel); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* The tag: a printed card stock inspection tag on a wire, the page's one bold element. */
.tag-wrap { margin: 0; position: relative; padding-top: 3.2rem; justify-self: center; width: min(100%, 22rem); }
.wire { position: absolute; left: 50%; top: 0; width: 2px; height: 3.9rem; background: linear-gradient(var(--steel), #8A958F); transform: translateX(-50%); }
.tag {
  position: relative; background: var(--tag); color: var(--tag-ink); padding: 3.4rem 1.6rem 1.4rem;
  clip-path: polygon(22% 0, 78% 0, 100% 9%, 100% 100%, 0 100%, 0 9%);
  border-radius: 0 0 6px 6px; transform-origin: 50% 0; transform: rotate(-3deg);
  box-shadow: inset 0 -6px 0 var(--tag-deep);
}
.grommet { position: absolute; left: 50%; top: 1rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; transform: translateX(-50%);
  background: var(--concrete); box-shadow: 0 0 0 .32rem #C9D1CB, inset 0 2px 3px rgba(0, 0, 0, .25); }
@media (prefers-reduced-motion: no-preference) {
  .tag { animation: settle 1.6s cubic-bezier(.3, 1.6, .5, 1) .25s both; }
  @keyframes settle { 0% { transform: rotate(9deg); } 100% { transform: rotate(-3deg); } }
}
.tag-state { font-size: 2.6rem; font-weight: 850; font-stretch: 125%; line-height: 1; letter-spacing: -.02em; }
.tag-sub { margin-top: .3rem; font-weight: 600; opacity: .85; }
.tag-fields { margin: 1.4rem 0 0; border-top: 2px solid rgba(255, 255, 255, .35); }
.tag-fields div { display: grid; grid-template-columns: 6.6rem 1fr; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.tag-fields dt { font-stretch: 75%; font-weight: 600; font-size: .9rem; opacity: .8; }
.tag-fields dd { margin: 0; font-weight: 600; line-height: 1.3; }
.sig { display: flex; flex-direction: column; gap: .1rem; }
.sig svg { width: 8.5rem; height: 2rem; }
.sig path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sig span { font-size: .9rem; font-weight: 500; opacity: .85; }
.tag-no { margin-top: 1.1rem; font-stretch: 75%; font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; }
.tag-wrap figcaption { margin-top: 1.3rem; font-size: .95rem; color: var(--steel); max-width: 22rem; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .tag-wrap { justify-self: start; }
}

/* ---------------------------------------------------------------- checklist */
.sheet { background: var(--paper); border-top: 1px solid var(--slab); border-bottom: 1px solid var(--slab); }
/* full-width bands keep the same left edge as the centred sections */
.sheet, .who { padding-inline: max(clamp(1rem, 4vw, 3rem), calc((100% - 76rem) / 2 + clamp(1rem, 4vw, 3rem))) !important; }
.section-lede { margin-top: 1rem; max-width: var(--measure); color: var(--steel); font-size: 1.1rem; }
.check { width: 100%; max-width: 60rem; border-collapse: collapse; margin-top: 2.2rem; }
.check th { text-align: left; font-stretch: 75%; font-weight: 650; font-size: .95rem; color: var(--steel); padding: 0 0 .6rem; border-bottom: 2px solid var(--ink); }
.check th:last-child, .check td:last-child { width: 4.5rem; text-align: center; }
.check td { padding: 1.05rem 1.5rem 1.05rem 0; border-bottom: 1px solid var(--slab); vertical-align: top; max-width: 46rem; }
.check td:last-child { padding-right: 0; }
.check strong { font-weight: 700; }
.box { display: inline-block; width: 1.35rem; height: 1.35rem; border: 2px solid var(--ink); border-radius: 3px; position: relative; margin-top: .15rem; }
.box::after { content: ""; position: absolute; left: .3rem; top: .02rem; width: .42rem; height: .78rem; border: solid var(--tag); border-width: 0 .2rem .2rem 0; transform: rotate(42deg); }

/* ---------------------------------------------------------------- steps */
.how { max-width: 76rem; margin: 0 auto; }
.steps { list-style: none; counter-reset: step; margin: 2.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.steps li { counter-increment: step; padding: 0 1.6rem 0 0; position: relative; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--concrete); border: 2px solid var(--ink); font-weight: 800; font-stretch: 125%; margin-bottom: 1.1rem; position: relative; z-index: 1;
}
.steps li::after { content: ""; position: absolute; top: 1.15rem; left: 2.4rem; right: 0; height: 2px; background: var(--slab); }
.steps li:last-child::after { display: none; }
.steps li:nth-child(3)::before { background: var(--hold); }
.steps li:last-child::before { background: var(--tag); color: #fff; border-color: var(--tag); }
.steps p { margin-top: .5rem; color: var(--steel); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.2rem; }
  .steps li::after { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- who */
.who { background: var(--ink); color: #E9EEEA; }
.who-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); margin-top: 1.8rem; }
.who-cols p { max-width: var(--measure); color: #C5CEC8; font-size: 1.1rem; }
@media (max-width: 760px) { .who-cols { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- contact */
.contact { max-width: 76rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); }
.contact-intro p { margin-top: 1rem; color: var(--steel); max-width: 28rem; }
.contact-intro .direct { margin-top: 1.4rem; color: var(--ink); }
.form { background: var(--paper); border: 1px solid var(--slab); border-top: 6px solid var(--tag); border-radius: 0 0 6px 6px; padding: clamp(1.2rem, 3vw, 2rem); display: grid; gap: 1.1rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.opt { font-weight: 400; color: var(--steel); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink); background: #fff; width: 100%;
  border: 1.5px solid #AEB7B1; border-radius: 4px; padding: .65rem .75rem; min-height: 2.9rem;
}
.form textarea { resize: vertical; min-height: 8rem; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 0; }
.form [aria-invalid="true"] { border-color: #B3261E; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.status { color: var(--steel); }
.status.ok { color: var(--tag-deep); font-weight: 650; }
.status.bad { color: #B3261E; font-weight: 600; }
.form.done .btn { display: none; }

/* ---------------------------------------------------------------- footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 2rem clamp(1rem, 4vw, 3rem); border-top: 1px solid var(--slab); color: var(--steel); font-size: .95rem; }
.foot p:last-child { display: flex; gap: 1.5rem; }

/* ---------------------------------------------------------------- policy pages */
.doc { max-width: 44rem; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem); }
.doc h1 { max-width: none; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.doc .doc-date { margin-top: .6rem; color: var(--steel); }
.doc h2 { font-size: 1.35rem; margin-top: 2.4rem; max-width: none; }
.doc h3 { font-size: 1.05rem; margin-top: 1.4rem; font-stretch: 110%; }
.doc p, .doc ul { margin-top: .8rem; }
.doc ul { padding-left: 1.2rem; }
.doc li + li { margin-top: .4rem; }
.foot p:last-child { flex-wrap: wrap; }

/* pricing */
.pricing { max-width: 76rem; margin: 0 auto; }
.pricing-lead { margin-top: .8rem; color: var(--steel); max-width: 40rem; font-size: 1.1rem; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.plan { background: var(--paper); border: 1px solid var(--slab); border-radius: 10px; padding: 1.4rem 1.4rem 1.2rem; display: flex; flex-direction: column; }
.plan h3 { font-size: 1.05rem; font-stretch: 80%; letter-spacing: .04em; text-transform: uppercase; color: var(--steel); margin: 0; }
.plan .price { margin: .5rem 0 1rem; display: flex; flex-direction: column; }
.plan .price strong { font-size: 2.2rem; font-weight: 800; color: var(--ink); line-height: 1.05; }
.plan .price span { color: var(--steel); font-size: .95rem; }
.plan ul { margin: 0; padding-left: 1.1rem; color: var(--ink); line-height: 1.5; flex: 1; }
.plan ul li { margin: .25rem 0; }
.plan-note { margin: 1rem 0 0; font-size: .9rem; color: var(--steel); }
.plan:nth-child(1) { border-color: var(--tag); box-shadow: inset 0 3px 0 var(--tag); }
.pricing-foot { margin-top: 1.4rem; color: var(--steel); max-width: 48rem; font-size: .95rem; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
