/* ==========================================================================
   Setters — site styles
   Design tokens mirror reference/brand/Setters_Website_Design_Guide.html
   ========================================================================== */

:root {
  /* Color */
  --ink: #2A2430;
  --plum: #4C3D4C;
  --plum-dark: #3a2e3a;
  --sage: #789894;
  --gold: #FFC447;
  --cream: #F5F1E8;
  --white: #FFFFFF;
  --gray-300: #e4e0e6;
  --gray-600: #6b6470;

  /* On-plum text tints */
  --on-plum-strong: #d9cfd9;
  --on-plum-muted: #c9bdc9;
  --on-plum-faint: #a598a5;

  --error: #a4372f;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-panel: 40px;

  /* Spacing */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;

  /* Layout */
  --container: 1180px;
  --gutter: 32px;

  /* Motion */
  --ease-out: cubic-bezier(.22, .72, .24, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

a { color: var(--plum); }
a:hover { color: var(--sage); }

::selection { background: var(--gold); color: var(--plum); }

img { max-width: 100%; }

h1, h2, h3, h4 { text-wrap: balance; }

.page { overflow-x: hidden; background: var(--white); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--gold);
  color: var(--plum);
  transition: transform .25s ease, box-shadow .25s ease;
}

.btn--primary:hover {
  color: var(--plum);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 196, 71, .42);
}

.btn--outline {
  background: transparent;
  color: var(--plum);
  border: 1.5px solid var(--plum);
  transition: background .25s ease, color .25s ease;
}

.btn--outline:hover {
  background: var(--plum);
  color: var(--white);
}

.btn--lg { font-size: 15px; padding: 15px 30px; }
.btn--sm { font-size: 14px; padding: 11px 22px; }
.btn--outline.btn--sm { padding: 9.5px 20.5px; }

/* --------------------------------------------------------------------------
   Site header / nav
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0);
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}

/* The Privacy Policy page keeps the header solid at all times. */
.site-header--solid,
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(42, 36, 48, .06), 0 10px 30px rgba(42, 36, 48, .06);
}

.site-header--solid { position: sticky; }

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.site-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-header__logo img {
  height: 26px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: 14px;
  font-weight: 500;
}

.site-nav a {
  text-decoration: none;
  color: var(--gray-600);
  transition: color .2s ease;
}

.site-nav a:hover { color: var(--plum); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 180px 0 104px;
  overflow: hidden;
}

.hero__inner { position: relative; z-index: 2; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--cream);
  color: var(--plum);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px var(--space-2);
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero__title {
  margin: 0 0 var(--space-3);
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.015em;
  max-width: 15ch;
}

.hero__lede {
  margin: 0 0 40px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.62;
  color: var(--gray-600);
  max-width: 56ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Decorative organic shapes */
.shape {
  position: absolute;
  will-change: transform;
  pointer-events: none;
}

.shape--plum {
  top: -40px;
  right: -150px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: var(--plum);
  opacity: .92;
}

.shape--gold {
  top: 290px;
  right: 150px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--gold);
}

.shape--sage-hero {
  bottom: -70px;
  right: 265px;
  width: 200px;
  height: 200px;
  border-radius: 36px;
  background: var(--sage);
  transform-origin: center;
  rotate: 12deg;
}

.shape--sage {
  bottom: -190px;
  left: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: var(--sage);
  opacity: .32;
}

/* --------------------------------------------------------------------------
   Credibility strip
   -------------------------------------------------------------------------- */

.credibility {
  position: relative;
  z-index: 3;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--space-12);
}

.credibility__inner {
  border-top: 1px solid var(--gray-300);
  padding-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) 56px;
}

.credibility__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sage);
  white-space: nowrap;
}

.credibility__line {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--plum);
  font-weight: 500;
  max-width: 48ch;
}

/* --------------------------------------------------------------------------
   Stacked rounded panels
   -------------------------------------------------------------------------- */

.panel {
  position: relative;
  border-radius: var(--radius-panel) var(--radius-panel) 0 0;
}

.panel--cream { background: var(--cream); }

.panel--plum {
  background: var(--plum);
  color: var(--white);
  overflow: hidden;
}

.panel--overlap { margin-top: -40px; }

.section-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   What we do
   -------------------------------------------------------------------------- */

.what-we-do {
  z-index: 4;
  padding: 104px 0 112px;
  box-shadow: 0 -20px 44px rgba(42, 36, 48, .05);
}

.what-we-do__head {
  max-width: 760px;
  margin-bottom: 56px;
}

.what-we-do__title {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.subsections {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.subsection__title {
  margin: 0 0 22px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--plum);
  display: flex;
  align-items: center;
  gap: var(--radius-md);
}

.subsection__rule {
  width: 22px;
  height: 2px;
  display: block;
  background: var(--sage);
}

.subsection--sage .subsection__rule { background: var(--sage); }
.subsection--gold .subsection__rule { background: var(--gold); }
.subsection--plum .subsection__rule { background: var(--plum); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-3);
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: transform .35s ease, box-shadow .35s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(42, 36, 48, .08);
}

/* A lone card in a subsection shouldn't stretch the full grid width. */
.card--solo { max-width: 560px; }

.card__chip {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  background: var(--sage);
}

.card__chip--sage { background: var(--sage); }
.card__chip--plum { background: var(--plum); }
.card__chip--gold { background: var(--gold); }

.card__title {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
}

.card__body {
  margin: 0 0 var(--space-2);
  font-size: 15px;
  line-height: 1.65;
  color: var(--plum);
}

.card__meta {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-600);
  padding-top: var(--space-2);
  border-top: 1px solid var(--gray-300);
}

/* --------------------------------------------------------------------------
   Why Setters
   -------------------------------------------------------------------------- */

.why {
  z-index: 5;
  padding: 112px 0 120px;
  box-shadow: 0 -20px 48px rgba(42, 36, 48, .14);
}

.why__inner { position: relative; z-index: 2; }

.why .section-eyebrow {
  color: var(--gold);
  margin-bottom: 28px;
}

.why__impact {
  font-size: clamp(88px, 15vw, 208px);
  line-height: .88;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--gold);
  will-change: transform;
}

.why__title {
  margin: 20px 0 44px;
  font-size: clamp(26px, 3.1vw, 38px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 18ch;
  color: var(--white);
}

.why__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px var(--space-8);
  align-items: start;
}

.why__body {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--on-plum-strong);
}

.why__audience {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--white);
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px var(--space-3);
}

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

.contact {
  z-index: 6;
  padding: 112px 0 120px;
  box-shadow: 0 -20px 48px rgba(42, 36, 48, .1);
}

.contact__title {
  margin: 0 0 20px;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.contact__lede {
  margin: 0 0 44px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--gray-600);
  max-width: 46ch;
}

.contact__panel { max-width: 660px; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--plum);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  padding: 13px 14px;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}

.field textarea { resize: vertical; }

.field input:focus,
.field textarea:focus {
  border-color: var(--sage);
  background: var(--white);
}

/* Honeypot — hidden from people, reachable by naive bots. */
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Collapsed until the hCaptcha script is requested, then holds the widget's
   height so the submit button doesn't jump down under the cursor. */
.captcha-slot.is-active { min-height: 78px; }

.captcha-slot iframe { max-width: 100%; }

.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.contact-form__error {
  font-size: 13px;
  line-height: 1.5;
  color: var(--error);
}

.contact-success {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 40px var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.contact-success__mark {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--sage);
}

.contact-success p {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--plum);
}

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 7;
  background: var(--plum);
  color: var(--white);
  border-radius: var(--radius-panel) var(--radius-panel) 0 0;
  padding: 72px 0 var(--space-6);
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px var(--space-8);
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.site-footer__wordmark {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.06em;
  color: var(--white);
  margin-bottom: var(--space-2);
}

.site-footer__entity {
  font-size: 14px;
  line-height: 1.8;
  color: var(--on-plum-muted);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--radius-md);
  font-size: 14px;
}

.site-footer__links a {
  color: var(--on-plum-strong);
  text-decoration: none;
  transition: color .2s ease;
}

.site-footer__links a:hover { color: var(--gold); }

.site-footer__legal {
  padding-top: 28px;
  font-size: 13px;
  color: var(--on-plum-faint);
}

/* --------------------------------------------------------------------------
   Cookie consent banner
   -------------------------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: var(--space-2);
  pointer-events: none;
}

.cookie-banner__inner {
  pointer-events: auto;
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 48px rgba(42, 36, 48, .16);
  padding: var(--space-3) 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px var(--space-3);
}

.cookie-banner__text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--plum);
}

.cookie-banner__text a {
  color: var(--plum);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Privacy Policy — long-form article page
   -------------------------------------------------------------------------- */

.article {
  max-width: 764px;
  margin: 0 auto;
  padding: 88px var(--gutter) 40px;
}

.article__title {
  margin: 0 0 12px;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.article__updated {
  margin: 0 0 40px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--sage);
}

.article p,
.article li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--plum);
}

.article p { margin: 0 0 20px; }

.article h2 {
  margin: 56px 0 var(--space-2);
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  scroll-margin-top: 96px;
}

.article h3 {
  margin: var(--space-4) 0 14px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
}

.article ul {
  margin: 0 0 20px;
  padding-left: 22px;
}

.article li { margin-bottom: 10px; }
.article li:last-child { margin-bottom: 0; }

/* The second intro paragraph carries the gap down to section 1. */
.article .lede + .lede { margin-bottom: 40px; }

.table-wrap {
  overflow-x: auto;
  margin: 0 0 var(--space-3);
}

.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--plum);
  min-width: 560px;
}

.article thead tr { background: var(--cream); }

.article th {
  text-align: left;
  font-weight: 700;
  padding: 14px var(--space-2);
  border: 1px solid var(--gray-300);
}

.article td {
  padding: 14px var(--space-2);
  border: 1px solid var(--gray-300);
  vertical-align: top;
}

.article__note {
  margin: 0 0 var(--space-8);
  font-size: 14px;
  line-height: 1.7;
  font-style: italic;
  color: var(--gray-600);
  border-top: 1px solid var(--gray-300);
  padding-top: var(--space-3);
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  will-change: opacity, transform;
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.js [data-impact] {
  opacity: 0;
  transform: translateY(34px) scale(.9);
  transform-origin: left bottom;
  transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1.1s cubic-bezier(.2, .75, .2, 1);
}

.js [data-impact].is-revealed {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 779px) {
  .site-nav { display: none; }
}

@media (max-width: 700px) {
  .shape--plum { width: 230px; height: 230px; top: -90px; right: -90px; }
  .shape--gold { display: none; }
  .shape--sage-hero { width: 110px; height: 110px; bottom: -40px; right: 32px; border-radius: 20px; }
  .shape--sage { width: 220px; height: 220px; bottom: -140px; left: -110px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }

  .hero { padding: 140px 0 80px; }
  .credibility { padding-bottom: 72px; }
  .what-we-do { padding: 80px 0 88px; }
  .why { padding: 88px 0 96px; }
  .contact { padding: 88px 0 96px; }

  .panel { border-radius: 28px 28px 0 0; }
  .site-footer { border-radius: 28px 28px 0 0; }

  .card { padding: var(--space-3); }
  .contact-form { padding: var(--space-3); }
  .card-grid { grid-template-columns: 1fr; }
  .what-we-do__head { margin-bottom: 40px; }
  .subsections { gap: 44px; }

  .article { padding-top: 56px; }
  .article h2 { margin-top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js [data-reveal],
  .js [data-impact] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .shape { transform: none !important; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
