/* Sprout marketing theme - shared by the landing, Learn, I have a question
   and Status pages.

   The theme documented in design_handoff_asset/README.md: square corners on
   everything except photography (16px there), at most two background colours
   per page, full-bleed bands are a photo under a gradient scrim, and almost no
   motion - hover colours and a form's own state change, nothing on scroll.

   Page-specific sections live in sprout-<page>.css alongside this file. */

:root {
  --sage: #5F6D47;
  --sage-light: #7B8A5E;   /* background and accent only - fails contrast as text */
  --dark: #2E3325;
  --cream: #FBF7EF;
  --cream-deep: #F1E6D3;
  --desk: #E7DCC7;
  --body-muted: #5A5F4C;
  --label-muted: #6E7059;
  --border-strong: #CFC3AA;
  --border-medium: #DDD2BC;
  --border-light: #EFE6D5;
  --amber-text: #8A6520;
  --amber-edge: #C9A24A;
  --amber-fill: #F7EFDC;
  --red: #A3382E;

  --on-dark: #F1E6D3;
  --on-dark-soft: #E2D9C4;
  --on-dark-muted: #CFC8B0;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --band-y: 88px;
  --band-x: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--dark);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

h1, h2, h3, p { margin: 0; }

a { color: var(--sage); text-decoration: none; }
a:hover { color: var(--sage); text-decoration: underline; }

img { max-width: 100%; }

/* ---------- type ---------- */

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}

.h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 5.2vw, 68px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* the sub-pages set their headings a step down from the landing's */
.h2-sm {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.h2-xs {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
}

.lead {
  font-size: 20px;
  color: var(--body-muted);
  text-wrap: pretty;
}

.band-lead {
  font-size: 17px;
  color: var(--body-muted);
  text-wrap: pretty;
}

/* ---------- layout ---------- */

.band {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--band-y) var(--band-x);
}

.band-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 620px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
}

/* a section head with a note pushed to the far end */
.head-split {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 32px;
}

.head-note { font-size: 15px; color: var(--body-muted); }

.fullbleed { position: relative; }
.fullbleed > .scrim { position: absolute; inset: 0; }
.fullbleed > .band { position: relative; }

/* ---------- dark sections ---------- */

.on-dark {
  background: var(--dark);
  color: var(--on-dark);
}

.on-dark .eyebrow { color: var(--on-dark-muted); }
.on-dark .h2,
.on-dark .h2-sm,
.on-dark .h2-xs { color: var(--cream); }
.on-dark .band-lead { color: var(--on-dark-soft); }
.on-dark .head-note { color: var(--on-dark-muted); }

/* ---------- wordmark ---------- */

.wordmark {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--dark);
}

.wordmark:hover { text-decoration: none; color: var(--dark); }

.wordmark img { width: 72px; height: 72px; display: block; }

.wordmark span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 48px;
  letter-spacing: -0.02em;
  color: var(--dark);
  line-height: 1;
}

/* ---------- buttons and links ---------- */

.btn-primary,
.btn-secondary,
.btn-on-dark,
.btn-on-sage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: none;
  font-family: inherit;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--sage);
  color: var(--cream);
  padding: 20px 24px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 20px rgba(46, 51, 37, 0.18);
}
.btn-primary:hover { background: var(--dark); color: var(--cream); text-decoration: none; }

/* the sub-pages use a plainer sage button with no lift */
.btn-sage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sage);
  color: var(--cream);
  padding: 16px 28px;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.18s ease;
}
.btn-sage:hover { background: var(--dark); color: var(--cream); text-decoration: none; }

.btn-secondary {
  background: transparent;
  color: var(--body-muted);
  padding: 16px 22px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border-medium);
}
.btn-secondary:hover { border-color: var(--sage); color: var(--body-muted); text-decoration: none; }

.btn-on-dark {
  background: var(--cream-deep);
  color: var(--dark);
  padding: 16px 28px;
  font-size: 17px;
  font-weight: 600;
}
.btn-on-dark:hover { background: var(--cream); color: var(--dark); text-decoration: none; }

.btn-on-sage {
  background: var(--cream);
  color: var(--sage);
  padding: 16px 28px;
  font-size: 18px;
  font-weight: 600;
}
.btn-on-sage:hover { background: var(--cream-deep); color: var(--sage); text-decoration: none; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  color: var(--sage);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.18s ease;
}
.btn-outline:hover { border-color: var(--sage); text-decoration: none; }

.link-quiet { font-size: 16px; font-weight: 600; color: var(--sage); }

.link-button {
  cursor: pointer;
  font-family: inherit;
  background: none;
  border: none;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--sage);
  text-decoration: underline;
}

/* ---------- pills and badges ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.pill-dot { width: 8px; height: 8px; border-radius: 50%; display: block; }

.pill-ok { background: #E7EDDF; color: #41562F; }
.pill-ok .pill-dot { background: #7B9E56; }

.pill-slow { background: #F7EBCF; color: #7A6222; }
.pill-slow .pill-dot { background: #D9AE45; }

.pill-down { background: #F6DDD5; color: #7E3A28; }
.pill-down .pill-dot { background: #C9573A; }

/* ---------- media placeholders ---------- */

/* Everything the handoff marks as a screenshot or video still to come. The
   hatch is deliberately obvious so an unfilled slot cannot ship unnoticed. */
.hatch {
  background: repeating-linear-gradient(135deg, var(--cream-deep) 0 14px, #E6D9C2 14px 28px);
  border: 1px solid var(--border-medium);
}

/* the smaller cards use a finer pitch than the full-width frames */
.hatch-fine {
  background: repeating-linear-gradient(135deg, var(--cream-deep) 0 12px, #E6D9C2 12px 24px);
  border: 1px solid var(--border-medium);
}

.hatch-dark {
  background: repeating-linear-gradient(135deg, #4A5140 0 12px, #434936 12px 24px);
}

.placeholder-tag {
  font-size: 12px;
  color: var(--body-muted);
  background: rgba(251, 247, 239, 0.9);
  border: 1px solid var(--border-medium);
  padding: 6px 10px;
}

.play {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(123, 138, 94, 0.35);
}

.play > span {
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 24px solid var(--cream);
  margin-left: 6px;
}

.play-sm { width: 72px; height: 72px; box-shadow: none; }
.play-sm > span { border-top-width: 12px; border-bottom-width: 12px; border-left-width: 20px; margin-left: 5px; }

.play-xs {
  width: 44px;
  height: 44px;
  background: var(--cream-deep);
  box-shadow: none;
}
.play-xs > span {
  border-top-width: 7px;
  border-bottom-width: 7px;
  border-left: 12px solid var(--dark);
  margin-left: 3px;
}

/* ---------- photos ---------- */

.photo {
  display: block;
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.photo-caption-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.photo-caption-wrap img { display: block; width: 100%; object-fit: cover; }

.photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 42px 20px 16px;
  background: linear-gradient(180deg, rgba(46, 51, 37, 0) 0%, rgba(46, 51, 37, 0.82) 100%);
  color: var(--cream);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------- inputs ---------- */

.input {
  font-family: inherit;
  font-size: 16px;
  color: var(--dark);
  background: #FFFFFF;
  border: 1.5px solid var(--border-strong);
  border-radius: 0;
  outline: none;
  padding: 12px 14px;
}

.input:focus { border-color: var(--sage); }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--border-medium); }

.foot-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 15px;
  font-weight: 600;
}

.foot-links a { color: var(--body-muted); }

.foot-credit { font-size: 14px; color: var(--label-muted); }
.foot-credit a { color: var(--body-muted); font-weight: 600; }

.foot-social { display: flex; flex-wrap: wrap; gap: 10px; }

.foot-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--body-muted);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.foot-social a:hover { border-color: var(--sage); color: var(--sage); text-decoration: none; }

/* ---------- utilities ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }
