/*
  The company pages (about/, contact/, privacy/ and terms/): Thanks Pro's, operated by
  GALLATE LLC (D-337). They live once on thankspro.tech and yardwork.pro links to them (D-118). A
  page loads thankspro.tech's styles.css first, for the layout, buttons, header and footer, then this
  file, which swaps in the company's warm palette with Thanks Pro's yard green as the accent
  (the app's default palette, D-337) and adds the page styles.

  Source: web/_sources/company/company.css. scripts/build-company.js copies it next to the
  pages (npm run company:sync); don't edit the copy.
*/

:root {
  --bg: #f7f3ec;
  --bg-2: #efe9df;
  --surface: #efe9df;
  --card: #fffdf9;
  --card-2: #f4eee4;
  --line: #e3dbcd;
  --border: #e3dbcd;
  --field-line: #9b8f7c; /* 3.1:1 on the card (WCAG 1.4.11) */
  --text: #1f1b16;
  --muted: #655c50; /* 5.9:1 on the page background */
  --accent: #2f855a; /* yard green; white on it is 4.5:1, and the logo's 19px bold "Pro" is 4.1:1 on the page (large text) */
  --accent-strong: #22673f; /* 6.2:1 on the page background, 6.7:1 on a card: every accent-coloured link and label */
  --accent-soft: #e8f3ec;
  --accent-ink: #ffffff;
  --amber: #8a5a00;
  --warning: #8a5a00;
  --warning-soft: #fbefd6;
  --shadow: 0 1px 2px rgba(31, 27, 22, 0.04), 0 6px 20px rgba(31, 27, 22, 0.06);
  --shadow-lg: 0 2px 6px rgba(31, 27, 22, 0.06), 0 24px 60px rgba(31, 27, 22, 0.14);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

.nav {
  background: rgba(247, 243, 236, 0.86);
}

.logo b {
  color: var(--accent);
}

.crumbs a {
  color: var(--accent-strong);
}

:focus-visible {
  outline-color: rgba(47, 133, 90, 0.45);
}

/* ---------- Page ---------- */

.co {
  padding: 56px 0 96px;
}

.co .wrap {
  max-width: 44em;
}

.co-eyebrow {
  margin: 0 0 12px;
  font: 700 13px/1 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.co h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.035em;
  font-weight: 850;
}

.co-lede {
  margin-top: 20px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 34em;
}

.co h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.co p {
  margin-top: 16px;
}

.co-list {
  margin-top: 16px;
  padding-left: 22px;
}

.co-list li + li {
  margin-top: 10px;
}

.co-list strong {
  color: var(--text);
}

.co-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.co-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}

.co-card .co-tag {
  margin: 0;
  font: 700 12px/1 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.co-card h3 {
  margin: 10px 0 0;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.co-card p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}

.co-card .mail,
.co-card .more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 650;
  color: var(--accent-strong);
  text-decoration: none;
  word-break: break-word;
}

.co-card .mail:hover,
.co-card .more:hover {
  text-decoration: underline;
}

.co-soon .co-card {
  background: var(--card-2);
  box-shadow: none;
}

.co-soon-label {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}

.co-band {
  margin-top: 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.co-band p {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}

/* ---------- Contact form ---------- */

.co-form {
  margin-top: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.co-form label {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 650;
}

.co-form label:first-child {
  margin-top: 0;
}

.co-form input,
.co-form select,
.co-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  font: 16px/1.4 var(--font);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--field-line);
  border-radius: var(--radius);
}

.co-form textarea {
  min-height: 160px;
  resize: vertical;
}

.co-form [aria-invalid="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.co-form .btn {
  margin-top: 20px;
}

/* A field's own error, shown when it's left (D-128). */
.co-form .co-field-error {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--warning);
}

.co-form .co-field-error:empty {
  display: none;
}

.co-errors {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 15px;
}

.co-errors:empty {
  display: none;
}

.co-errors ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.co-status {
  margin-top: 14px;
  font-size: 15px;
}

/* The hidden field bots fill in and people never see (D-345): off-screen, not display: none. */
.co-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.co-form .btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.co-status:empty {
  display: none;
}

.co-form-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.co-form-note a,
.co-status a {
  color: inherit;
  text-decoration: underline;
}

/* ---------- Legal pages (privacy/, terms/) ---------- */

.co-legal-meta {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
}

.co-legal h1 + .co-legal-meta + p {
  font-size: 19px;
  color: var(--muted);
  margin-top: 28px;
}

.co-legal h3 {
  font-size: 19px;
  font-weight: 750;
  margin-top: 32px;
}

.co-legal p,
.co-legal ul {
  margin-top: 16px;
}

.co-legal ul {
  padding-left: 22px;
}

.co-legal li + li {
  margin-top: 8px;
}

.co-legal a {
  color: var(--accent-strong);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .co {
    padding: 36px 0 72px;
  }

  .co-band {
    padding: 22px;
  }
}

/* A card with two links (About's YardWork: its homeowner and pro parts) stacks them. */
.co-card .more + .more {
  display: block;
  margin-top: 6px;
}
