/* SweepCycle interest pages. Shared by index.html and pros.html. No build step. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("bricolage-grotesque-latin-var.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --bg: #FBF9F4;
  --bg-2: #F3EFE5;
  --surface: #FFFFFF;
  --text: #15261E;
  --text-soft: #4C5B52;
  --accent: #1E5C40;
  --amber-text: #8A520F;
  --line: #DFD8C8;
  --line-strong: #B9B19E;
  --field: #FFFFFF;
  --btn: #1E5C40;
  --btn-hover: #174A33;
  --btn-text: #FFFFFF;
  --tint: #EAF2EC;
  --error: #B43A22;
  --lift: 0 18px 40px -28px rgba(21, 38, 30, .45);
  --house-off: #C9C2B0;

  /* These hold in both light and dark. The art is printed in two inks on paper. */
  --paper: #FBF3E2;
  --pine: #1E5C40;
  --pine-deep: #143A2B;
  --amber: #E39A33;

  --font: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D1612;
    --bg-2: #121D18;
    --surface: #17241D;
    --text: #EEF2EC;
    --text-soft: #A8B5AC;
    --accent: #8FD0AB;
    --amber-text: #EDAE55;
    --line: #293930;
    --line-strong: #46594E;
    --field: #101A15;
    --btn: #2C7A56;
    --btn-hover: #256A4A;
    --btn-text: #FFFFFF;
    --tint: #1B3327;
    --error: #FF9B84;
    --lift: 0 18px 40px -28px rgba(0, 0, 0, .9);
    --house-off: #3B4C42;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.58;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

h1, h2, h3 { font-stretch: 88%; font-weight: 700; line-height: 1.07; letter-spacing: -.018em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(33px, 8.6vw, 56px); }
h2 { font-size: clamp(28px, 6.4vw, 42px); }
h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.01em; }
.lede { font-size: clamp(18px, 2.2vw, 20px); color: var(--text-soft); max-width: 58ch; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 650; font-size: 17px; line-height: 1.15;
  padding: 14px 22px; min-height: 52px;
  border: 0; border-radius: 10px; cursor: pointer; text-decoration: none;
  background: var(--btn); color: var(--btn-text);
  transition: background .15s ease;
}
.btn:hover { background: var(--btn-hover); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-quiet {
  background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn-quiet:hover { background: var(--tint); }

/* ───────── top bar ───────── */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 10px; min-height: 60px; }
@media (max-width: 359px) {
  .top .wrap { gap: 6px; }
  .mark { font-size: 16px; gap: 5px; }
  .mark svg { width: 18px; height: 18px; }
  .top .btn { padding: 9px 9px; font-size: 13.5px; }
  .top-link { display: none; } /* About is in the footer on the narrowest phones */
}
.mark { display: inline-flex; align-items: center; gap: 7px; margin-right: auto; font-stretch: 88%; font-weight: 700; font-size: 18px; letter-spacing: -.015em; color: var(--text); text-decoration: none; white-space: nowrap; }
.mark svg { width: 21px; height: 21px; flex: 0 0 auto; }
.top-link { font-weight: 600; font-size: 14.5px; text-decoration: none; padding: 10px 2px; white-space: nowrap; }
.top-link:hover { text-decoration: underline; }
.top-link.cross { display: none; }
.top .btn { font-size: 14.5px; padding: 9px 11px; min-height: 42px; white-space: nowrap; }

/* ───────── hero ───────── */
.hero { padding: 30px 0 0; }
.hero .lede { margin: 16px 0 0; }
.hero .lede strong { color: var(--text); font-weight: 600; }
.hero-go { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.hero-go .btn { flex: 1 1 auto; }

/* Art is two inks on a white ground, laid onto the page with multiply so it has no box. */
.art { margin: 22px calc(var(--gutter) * -1) 0; }
.art img {
  width: 100%; aspect-ratio: 1248 / 776; object-fit: cover; object-position: top; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
@media (prefers-color-scheme: dark) {
  .art { margin-left: 0; margin-right: 0; background: var(--paper); border-radius: 16px; overflow: hidden; }
}

section { padding: 60px 0; }
.band { background: var(--bg-2); }

/* ───────── forms ───────── */
.signup { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 18px 24px; box-shadow: var(--lift); }
.signup h2 { font-size: clamp(28px, 6.4vw, 36px); }
.signup .lede { font-size: 17px; margin: 10px 0 20px; }
.f { margin-bottom: 16px; }
.f label, fieldset legend { display: block; font-weight: 650; font-size: 16px; margin-bottom: 6px; padding: 0; }
.opt { font-weight: 400; color: var(--text-soft); }
input[type="text"], input[type="email"], input[type="number"], textarea {
  width: 100%; font: inherit; font-size: 18px; color: var(--text); background: var(--field);
  border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; min-height: 52px;
}
textarea { min-height: 92px; resize: vertical; line-height: 1.4; }
input::placeholder, textarea::placeholder { color: var(--text-soft); opacity: .75; }
input:focus, textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 0; }
input[aria-invalid="true"] { border-color: var(--error); }
.two { display: grid; grid-template-columns: 1.7fr 1fr; gap: 12px; }
fieldset { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.pick { display: grid; gap: 8px; }
.pick label {
  display: flex; align-items: flex-start; gap: 11px; margin: 0; font-weight: 550; font-size: 16.5px; line-height: 1.3;
  padding: 12px 13px; border: 1.5px solid var(--line-strong); border-radius: 10px; cursor: pointer; background: var(--field);
}
.pick label:has(input:checked) { border-color: var(--accent); background: var(--tint); }
.pick input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.pick.cols { grid-template-columns: 1fr 1fr; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ts-box:not(:empty) { margin: 0 0 14px; }
.signup .btn { width: 100%; }
.promise { margin: 14px 0 0; font-size: 16px; color: var(--text-soft); }
.msg { margin: 12px 0 0; font-weight: 600; min-height: 1.5em; }
.msg[data-state="error"] { color: var(--error); }

.done { display: none; text-align: center; }
.signup.is-done form { display: none; }
.signup.is-done .done { display: block; }
.done img { width: 104px; aspect-ratio: 1; object-fit: contain; margin: 0 auto 14px; padding: 12px; border-radius: 50%; background: var(--paper); }
.done h2 { margin-bottom: 12px; }
.done p { color: var(--text-soft); max-width: 40ch; margin-left: auto; margin-right: auto; }
.done .btn { margin-top: 6px; width: auto; }

.join-grid { display: grid; gap: 28px; }
.join-side h2 { margin-bottom: 14px; }
.join-side p { max-width: 46ch; }

/* ───────── questions ───────── */
.faq h2 { margin-bottom: 24px; }
details { border-top: 1px solid var(--line-strong); }
details:last-of-type { border-bottom: 1px solid var(--line-strong); }
summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 17px 0; font-weight: 650; font-size: 18.5px; line-height: 1.3;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: 0 0 auto; width: 16px; height: 16px; background: var(--accent); transition: transform .2s ease;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M8.5 0h3v8.5H20v3h-8.5V20h-3v-8.5H0v-3h8.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M8.5 0h3v8.5H20v3h-8.5V20h-3v-8.5H0v-3h8.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 20px; color: var(--text-soft); max-width: 62ch; }

footer { padding: 28px 0 40px; color: var(--text-soft); font-size: 15.5px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer a { font-weight: 600; }

/* ───────── wider screens ───────── */
@media (min-width: 480px) {
  .hero-go .btn { flex: 0 0 auto; }
}
@media (min-width: 600px) {
  .top-link.cross { display: inline; }
}
@media (min-width: 700px) {
  :root { --gutter: 28px; }
  section { padding: 84px 0; }
  .top .wrap { gap: 18px; }
  .mark { font-size: 20px; gap: 8px; }
  .mark svg { width: 24px; height: 24px; }
  .top-link { font-size: 15px; }
  .top .btn { font-size: 15px; padding: 9px 14px; }
  .art { margin-left: 0; margin-right: 0; }
  .signup { padding: 32px 32px 34px; }
}
@media (min-width: 1000px) {
  .hero { padding: 56px 0 0; }
  .hero-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 48px; align-items: center; }
  .hero-top .art { margin-top: 0; }
  .join-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .join-side { position: sticky; top: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* The trademark sign is drawn, not typed, so it stays thin and evenly spaced whatever the name's weight. */
.mark svg.tm { display: inline-block; width: auto; height: .3em; margin-left: .1em; vertical-align: .37em; overflow: visible; }
.tm path { fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linejoin: miter; stroke-miterlimit: 6; }
