/* MindMacros brand — style guide tokens */
:root {
  --color-primary: #f57733;
  --color-primary-hover: #e06a28;
  --color-secondary: #43403c;
  --color-tertiary-1: #f6f0e7;
  --color-tertiary-2: #fef8f1;
  --color-accent-1: #b8c5ce;
  --color-accent-2: #e8dcc5;
  --color-success: #6f963c;
  --color-error: #d8573b;
  --color-light: #ffffff;
  --color-border: rgba(67, 64, 60, 0.15);
  --font: "Roboto", system-ui, -apple-system, sans-serif;
  --weight: 600;
  --radius: 10px;
  --radius-btn: 6px;
  --shadow-card: 0 8px 28px rgba(67, 64, 60, 0.08);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: var(--weight);
  line-height: 1.5;
  color: var(--color-secondary);
  background: var(--color-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Style-guide type scale (responsive; spec uses pt — tuned for screens) */
.text-h1 {
  font-size: clamp(2.25rem, 4.2vw + 1rem, 4rem);
  font-weight: var(--weight);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

.text-h2 {
  font-size: clamp(1.85rem, 2.8vw + 1rem, 3.15rem);
  font-weight: var(--weight);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-secondary);
}

.text-h3 {
  font-size: clamp(1.35rem, 1.6vw + 1rem, 2.65rem);
  font-weight: var(--weight);
  line-height: 1.2;
  color: var(--color-secondary);
}

.text-p1 {
  font-size: clamp(1rem, 0.4vw + 1rem, 1.125rem);
  font-weight: var(--weight);
  line-height: 1.55;
  color: var(--color-secondary);
}

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 10000;
  padding: 8px 16px;
  background: var(--color-light);
  color: var(--color-primary);
  font-weight: var(--weight);
  border-radius: var(--radius-btn);
}

.skip-link:focus {
  left: 12px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-light);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.header__logo img {
  width: auto;
  height: 36px;
}

.header__menu {
  display: none;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--color-secondary);
  cursor: pointer;
}

.header__menu-line {
  display: block;
  width: 28px;
  height: 3px;
  flex: 0 0 3px;
  margin: 3px 0;
  border-radius: 999px;
  background: var(--color-secondary);
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header__link {
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: var(--weight);
  font-size: 15px;
}

.header__link:hover {
  color: var(--color-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: var(--weight);
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.15s;
}

.btn--sm {
  padding: 10px 18px;
  font-size: 14px;
}

.btn:active {
  transform: scale(0.98);
}

.btn__icon {
  flex-shrink: 0;
}

.btn__icon--dark {
  filter: brightness(0) saturate(100%);
  opacity: 0.85;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-light);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: #0a0a0a;
  color: var(--color-light);
  border-color: #0a0a0a;
}

.btn--outline-dark {
  background: var(--color-light);
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.btn--outline-dark:hover {
  background: #0a0a0a;
  color: var(--color-light);
  border-color: #0a0a0a;
}

.btn--outline-dark:hover .btn__icon--dark {
  filter: brightness(0) invert(1);
  opacity: 1;
}

.btn--block {
  width: 100%;
}

button.btn--primary {
  font: inherit;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 56px 24px 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-color: var(--color-tertiary-2);
  background-image: url("assets/mindmacros-background.webp");
  background-size: cover;
  /* Bias right so the plant in the artwork stays in frame (not cropped off-viewport) */
  background-position: 86% 42%;
  background-repeat: no-repeat;
}

/* Light scrim on the copy side so text stays legible on any photo */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(254, 248, 241, 0.9) 0%,
    rgba(254, 248, 241, 0.5) 42%,
    transparent 72%
  );
  pointer-events: none;
}

.hero__waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  z-index: 1;
  pointer-events: none;
}

.hero__wave-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero__content {
  text-align: left;
  max-width: 640px;
}

.hero__title {
  margin: 0 0 20px;
  /* Matches live site: rgb(67, 64, 60) / #43403C — not orange on the hero */
  color: var(--color-secondary);
}

.hero__lead {
  margin: 0 0 20px;
  opacity: 0.92;
}

.hero__kicker {
  margin: 0 0 28px;
  font-size: clamp(1.05rem, 1.2vw + 0.9rem, 1.25rem);
  font-weight: var(--weight);
  color: var(--color-secondary);
}

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

/* Solutions */
.solutions {
  padding: 72px 24px 88px;
  background: var(--color-light);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-title {
  margin: 0 0 16px;
  font-family: var(--font);
  letter-spacing: -0.02em;
}

.section-title__accent {
  color: var(--color-primary);
}

.section-sub {
  margin: 0;
  opacity: 0.9;
}

.cards {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  background: var(--color-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.card:nth-child(even) {
  grid-template-columns: 1.1fr 1fr;
}

.card:nth-child(even) .card__media {
  order: 2;
}

.card:nth-child(even) .card__body {
  order: 1;
}

.card__media {
  min-height: 240px;
  background: var(--color-tertiary-1);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
}

.card__icon-wrap {
  margin-bottom: 12px;
}

.card__icon-wrap img {
  width: 40px;
  height: 40px;
}

.card__title {
  margin: 0 0 12px;
  font-family: var(--font);
  font-size: clamp(1.2rem, 1.2vw + 1rem, 1.5rem);
  font-weight: var(--weight);
  color: var(--color-secondary);
}

.card__desc,
.card__note {
  margin: 0 0 16px;
  font-size: 0.98rem;
  font-weight: var(--weight);
  line-height: 1.55;
  color: var(--color-secondary);
  opacity: 0.88;
}

.card__list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.card__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: var(--weight);
  color: var(--color-secondary);
  line-height: 1.45;
  opacity: 0.92;
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
}

.card__list--tight {
  margin-bottom: 12px;
}

.card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--weight);
  color: var(--color-primary);
  text-decoration: none;
  padding-top: 8px;
}

.card__cta:hover {
  color: var(--color-primary-hover);
}

.card__cta img {
  transition: transform 0.2s;
}

.card__cta:hover img {
  transform: translateX(4px);
}

/* Waitlist — cream section */
.waitlist {
  padding: 72px 24px 88px;
  background: var(--color-tertiary-1);
  color: var(--color-secondary);
}

.waitlist__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.waitlist__title {
  margin: 0 0 28px;
  font-family: var(--font);
}

.benefits {
  list-style: none;
  margin: 0;
  padding: 0;
}

.benefits__item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 0.95rem;
  font-weight: var(--weight);
  line-height: 1.45;
  color: var(--color-secondary);
}

.benefits__tick {
  flex-shrink: 0;
  margin-top: 2px;
}

.benefits__dash {
  opacity: 0.65;
  margin: 0 4px;
}

.waitlist__form-wrap {
  background: var(--color-light);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.field__label {
  font-size: 14px;
  font-weight: var(--weight);
  color: var(--color-secondary);
}

.field__input {
  font-family: var(--font);
  font-size: 16px;
  font-weight: var(--weight);
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  color: var(--color-secondary);
  background: var(--color-light);
  transition: border-color 0.2s;
}

.field__input::placeholder,
.field__textarea::placeholder {
  color: rgba(67, 64, 60, 0.42);
  font-weight: 400;
  opacity: 1;
}

.field__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(245, 119, 51, 0.2);
}

.field__input--invalid {
  border-color: var(--color-error);
}

.field__input--invalid:focus {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(216, 87, 59, 0.22);
}

.field__error {
  margin: 0;
  font-size: 14px;
  font-weight: var(--weight);
  color: var(--color-error);
}

.field__error:empty {
  display: none;
}

.field__error:not(:empty) {
  display: block;
  margin-top: 4px;
}

.field__textarea {
  resize: vertical;
  min-height: 100px;
}

.field--checkboxes .field__label {
  margin-bottom: 8px;
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: var(--weight);
  color: var(--color-secondary);
  cursor: pointer;
}

.checkbox input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form .btn--primary {
  margin-top: 8px;
}

.form__status {
  min-height: 1.25em;
  margin: 0;
  font-size: 14px;
  font-weight: var(--weight);
}

.form__status--ok {
  color: var(--color-success);
}

.form__status--err {
  color: var(--color-error);
}

/* Closing */
.closing {
  padding: 64px 24px;
  background: var(--color-tertiary-2);
}

.closing__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.closing__title {
  margin: 0 0 16px;
  font-family: var(--font);
}

.closing__text {
  margin: 0;
  opacity: 0.9;
}

/* Footer */
.footer {
  background: var(--color-secondary);
  color: rgba(255, 255, 255, 0.9);
  padding: 48px 24px 32px;
}

.footer__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.footer__social {
  margin-bottom: 16px;
}

.footer__heading {
  margin: 0 0 12px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: var(--weight);
  color: var(--color-light);
}

.footer__linkedin {
  display: inline-flex;
  color: var(--color-light);
  transition: opacity 0.2s;
}

.footer__linkedin:hover {
  opacity: 0.85;
}

.footer__tagline {
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: var(--weight);
  color: rgba(255, 255, 255, 0.75);
}

.footer__legal {
  margin: 0;
  font-size: 13px;
  font-weight: var(--weight);
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 900px) {
  .header__inner {
    padding: 16px 32px;
    flex-wrap: wrap;
    align-items: center;
  }

  .header__menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-left: auto;
  }

  .header__menu[aria-expanded="true"] .header__menu-line:nth-child(2) {
    transform: translateY(9px) rotate(45deg);
  }

  .header__menu[aria-expanded="true"] .header__menu-line:nth-child(3) {
    opacity: 0;
  }

  .header__menu[aria-expanded="true"] .header__menu-line:nth-child(4) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .header__nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-top: 18px;
  }

  .header__nav.is-open {
    display: flex;
  }

  .header__link {
    text-align: center;
    font-size: 18px;
  }

  .header__cta {
    width: 100%;
  }

  .card,
  .card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .card:nth-child(even) .card__media,
  .card:nth-child(even) .card__body {
    order: unset;
  }

  .waitlist__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .card__body {
    padding: 24px;
  }
}
