/* CueBuilt: a few pages, same look as getroofcue.com (Barlow, RoofCue blue, cards). */
@font-face {
  font-family: 'Barlow';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/barlow-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/barlow-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/barlow-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2');
}

:root {
  --blue: #0068eb;
  --blue-deep: #0052bd;
  --ink: #0b1220;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f6f8fb;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    400 17px/1.65 'Barlow',
    system-ui,
    sans-serif;
}
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  background: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink);
}
h1,
h2,
h3 {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0;
}
h1 {
  font-size: clamp(40px, 7vw, 68px);
  max-width: 14ch;
}
h2 {
  font-size: clamp(30px, 4.5vw, 40px);
}
h3 {
  font-size: 28px;
  margin-top: 14px;
}
a {
  color: var(--blue);
}
a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
  font-weight: 600;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 8px 0;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--blue);
}
.top img {
  display: block;
  height: 36px;
  width: auto;
}

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 10px;
  min-height: 48px;
}
.btn:hover {
  background: var(--blue-deep);
}
.btn.small {
  padding: 9px 16px;
  min-height: 0;
}
.btn.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.light {
  background: #fff;
  color: var(--ink);
}

.hero {
  padding-top: 48px;
  padding-bottom: 64px;
}
.eyebrow {
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 14px;
  margin: 0 0 12px;
}
.lead {
  font-size: 20px;
  max-width: 40rem;
  margin: 20px 0 28px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.grid {
  display: grid;
  gap: 20px;
  margin-top: 28px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.card p {
  margin: 8px 0 0;
}
.mark {
  width: 48px;
  height: 48px;
}
.mark.round {
  border-radius: 12px;
}
.tag {
  color: var(--muted);
  font-weight: 600;
}
.link {
  margin-top: auto;
  padding-top: 18px;
  font-weight: 600;
}
.soon {
  margin-top: auto !important;
  padding-top: 18px;
  color: #b45309;
  font-weight: 600;
}

.about {
  margin-top: 72px;
}
.about p {
  max-width: 44rem;
  font-size: 19px;
  margin-top: 14px;
}

.cta {
  margin-top: 72px;
  background: var(--blue);
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
}
.cta h2,
.cta p {
  color: #fff;
}
.cta p {
  margin: 10px 0 22px;
  opacity: 0.92;
}

.foot {
  padding-top: 40px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 15px;
}
.foot p {
  margin: 4px 0;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-bottom: 12px;
  font-weight: 600;
}
.foot-links a {
  color: var(--text);
  text-decoration: none;
  padding: 6px 0;
}
.foot-links a:hover {
  color: var(--blue);
}

/* Inner pages: About, Websites and the form's replies. */
.page-head {
  padding-top: 40px;
  padding-bottom: 8px;
}
.page-head h1 {
  max-width: 22ch;
}
.section {
  margin-top: 64px;
}
.section > p {
  max-width: 44rem;
}
.two {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}
@media (min-width: 760px) {
  .two {
    grid-template-columns: 1fr 1fr;
  }
  .two.about-grid {
    grid-template-columns: minmax(0, 17rem) 1fr;
  }
}
.photo {
  padding: 0;
  margin: 0;
  overflow: hidden;
}
.photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.photo figcaption {
  padding: 14px 20px;
  font-size: 15px;
  color: var(--muted);
}
.photo figcaption strong {
  color: var(--ink);
}
.work {
  padding: 0;
  overflow: hidden;
}
.work img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--line);
}
.work .body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card h3:first-child,
.work h3 {
  margin-top: 0;
}
.kind {
  color: var(--muted);
  font-size: 15px;
}
.steps,
.checks {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.steps li {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}
.steps .num {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e6f0fd;
  color: var(--blue-deep);
  font-weight: 600;
}
.steps p {
  margin: 0;
}
.steps strong {
  color: var(--ink);
}
.checks li {
  position: relative;
  padding-left: 28px;
  margin-top: 10px;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 7px;
  width: 7px;
  height: 12px;
  border: solid var(--blue);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* The proposal form, handed on to the RoofCue website (worker.js). */
.form {
  max-width: 42rem;
  margin: 28px auto 0;
  position: relative;
}
.fields {
  display: grid;
  gap: 18px;
}
@media (min-width: 640px) {
  .fields {
    grid-template-columns: 1fr 1fr;
  }
  .fields .wide {
    grid-column: 1 / -1;
  }
}
.form label {
  display: block;
  font-weight: 600;
  color: var(--ink);
}
.form .optional {
  font-weight: 400;
  color: var(--muted);
}
.form input,
.form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 16px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #94a3b8;
  border-radius: 10px;
}
.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--blue);
  border-color: var(--blue);
}
.form button {
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  margin-top: 22px;
}
.form .note {
  font-size: 15px;
  color: var(--muted);
  margin: 16px 0 0;
}
.cf-turnstile {
  margin-top: 22px;
}
.trap {
  position: absolute;
  left: -9999px;
}
.center {
  text-align: center;
}
.center > p {
  margin-left: auto;
  margin-right: auto;
}
