/* Effortless SLP — waitlist site
   Palette: warm off-white, sage green, charcoal.
   Logo is a placeholder wordmark; not final. */

:root {
  --cream: #f6f1e8;
  --cream-deep: #ece4d6;
  --paper: #fffaf3;
  --sage: #4a6350;
  --sage-hover: #3d5344;
  --sage-deep: #334539;
  --sage-mid: #6b8a70;
  --sage-mist: #e4eee4;
  --sage-soft: #d3e0d4;
  --charcoal: #2a2825;
  --ink: #3b3833;
  --muted: #5f5a54;
  --line: #d8d0c3;
  --focus: #4a6350;
  --danger: #8a3b32;
  --header-h: 4.25rem;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(42, 40, 37, 0.05), 0 12px 32px rgba(42, 40, 37, 0.06);
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --space: clamp(1.25rem, 4vw, 2rem);
  --wide: 70rem;
  --reading: 40rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--sage);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 1000;
  padding: 0.5rem 0.85rem;
  background: var(--charcoal);
  color: var(--cream);
  border-radius: 6px;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

.header-inner,
.nav-wrap,
.footer-inner {
  width: min(var(--wide), calc(100% - 2 * var(--space)));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--charcoal);
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
  line-height: 1;
}

.logo:hover {
  color: var(--charcoal);
}

.logo-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
  align-self: center;
  transform: translateY(-0.04em);
}

.logo-accent {
  color: var(--sage);
  font-style: italic;
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--sage);
  color: var(--paper) !important;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-cta:hover {
  background: var(--sage-hover);
}

/* —— Layout helpers —— */
.section {
  padding: clamp(3.25rem, 8vw, 5.5rem) 0;
}

.section-inner {
  width: min(var(--wide), calc(100% - 2 * var(--space)));
  margin-inline: auto;
}

.narrow {
  width: min(var(--reading), calc(100% - 2 * var(--space)));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 560;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.15rem, 5.4vw, 3.85rem);
  font-weight: 600;
}

h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.lede,
.subhead {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink);
}

.muted {
  color: var(--muted);
}

/* —— Hero —— */
.hero {
  padding: clamp(2.5rem, 7vw, 4.75rem) 0 clamp(3.5rem, 8vw, 5.75rem);
}

.hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: start;
}

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
  }
}

.hero-copy p {
  margin: 0 0 1rem;
}

.hero-copy p:last-child {
  margin-bottom: 0;
}

/* —— Form card —— */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.4rem 1.35rem;
}

.form-card h2,
.form-heading {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  margin: 0 0 0.35rem;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.form-intro {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.waitlist-form {
  display: grid;
  gap: 0.9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--charcoal);
}

.field input {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  color: var(--charcoal);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  appearance: none;
}

.field input::placeholder {
  color: #8a847b;
}

.field input:hover {
  border-color: color-mix(in srgb, var(--sage) 45%, var(--line));
}

.field input:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 22%, transparent);
  background: #fff;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 0.2rem;
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--paper);
  background: var(--sage);
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1.1rem;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: var(--sage-hover);
  color: var(--paper);
}

.btn:active {
  background: var(--sage-deep);
}

.fine-print {
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

/* —— Who it's for —— */
.who {
  background: var(--sage-mist);
}

.who-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .who-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .who .section-inner > .eyebrow,
  .who .section-inner > h2 {
    text-align: center;
  }

  .who .section-inner > h2 {
    margin-bottom: 2rem;
  }
}

.who-card {
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--sage-soft) 70%, var(--line));
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.3rem;
}

.who-icon {
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.85rem;
  color: var(--sage);
}

.who-card p {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
}

/* —— Learn / modules —— */
.learn-intro {
  margin: 0 0 1.75rem;
  max-width: 38rem;
}

.module-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.module-list li {
  display: grid;
  grid-template-columns: 2.85rem 1fr;
  gap: 0.85rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

@media (min-width: 800px) {
  .module-list {
    grid-template-columns: 1fr 1fr;
    gap: 0 2.5rem;
    border-top: 0;
  }

  .module-list li {
    border-top: 1px solid var(--line);
    border-bottom: 0;
  }
}

.mod-num {
  font-family: var(--font-serif);
  font-weight: 560;
  font-size: 1.15rem;
  color: var(--sage);
  line-height: 1.35;
  padding-top: 0.1rem;
}

.mod-body strong {
  display: block;
  color: var(--charcoal);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.1rem;
}

.mod-body span {
  color: var(--muted);
  font-size: 1rem;
}

.plus-note,
.privacy-callout {
  margin: 1.5rem 0 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
}

.plus-note {
  background: var(--cream-deep);
  color: var(--ink);
}

.privacy-callout {
  background: var(--sage-mist);
  border-left: 3px solid var(--sage);
  color: var(--ink);
}

.plus-note p,
.privacy-callout p {
  margin: 0;
}

/* —— About —— */
.about {
  background: var(--sage-deep);
  color: #e7efe6;
}

.about h2,
.about .eyebrow {
  color: #f3f7f2;
}

.about .eyebrow {
  color: #b7cbb8;
}

.about-text {
  margin: 0;
  max-width: 38rem;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  font-weight: 480;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: #f6f1e8;
}

/* —— FAQ —— */
.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--charcoal);
  padding: 1rem 2.75rem 1rem 1.15rem;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1.15rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--sage);
  border-bottom: 2px solid var(--sage);
  transform: translateY(-70%) rotate(45deg);
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq-item .faq-body {
  padding: 0 1.15rem 1.1rem;
  color: var(--ink);
  margin: 0;
}

.faq-item .faq-body p {
  margin: 0;
}

/* —— Bottom CTA —— */
.cta {
  background: var(--sage-mist);
}

.cta-card {
  width: min(36rem, 100%);
  margin-inline: auto;
}

.cta-lead {
  text-align: center;
  margin-bottom: 1.75rem;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2rem;
  background: var(--cream);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.1rem;
}

.footer-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--sage);
  text-decoration: underline;
}

/* —— Interior pages —— */
.page-main {
  padding: clamp(2.5rem, 6vw, 4rem) 0 5rem;
}

.page-main h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.prose p {
  margin: 0 0 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* —— 404 —— */
.not-found {
  min-height: calc(100vh - 9rem);
  display: grid;
  align-items: center;
  padding: 3rem 0 4rem;
  text-align: center;
}

.not-found h1 {
  margin-bottom: 0.75rem;
}

.not-found p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.btn-inline {
  width: auto;
  display: inline-flex;
  padding-inline: 1.35rem;
}

/* Placeholder form note for developers only (visually hidden) */
.embed-note {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.waitlist-embed {
  position: relative;
}


/* MailerLite embedded form */
.ml-embedded {
  min-height: 0;
}

.ml-embedded .ml-form-embedWrapper,
.ml-embedded .ml-form-embedContainer,
.ml-embedded .ml-form-embedBody,
.ml-embedded .ml-form-align-center {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* Our cards already have a heading and intro; hide MailerLite's duplicate copy.
   Leave the success message visible. */
.ml-embedded .ml-form-embedBodyDefault > .ml-form-embedContent {
  display: none !important;
}

.ml-embedded .ml-form-formContent,
.ml-embedded .ml-form-fieldRow,
.ml-embedded .ml-field-group {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

.ml-embedded input.form-control,
.ml-embedded input[type="text"],
.ml-embedded input[type="email"] {
  width: 100% !important;
  font-family: var(--font-sans) !important;
  font-size: 1.05rem !important;
  color: var(--charcoal) !important;
  background: var(--cream) !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  padding: 0.7rem 0.85rem !important;
  box-sizing: border-box !important;
}

.ml-embedded input.form-control:focus,
.ml-embedded input[type="text"]:focus,
.ml-embedded input[type="email"]:focus {
  outline: none !important;
  border-color: var(--sage) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 22%, transparent) !important;
  background: #fff !important;
}

.ml-embedded label {
  font-family: var(--font-sans) !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  color: var(--charcoal) !important;
}

.ml-embedded .ml-form-embedSubmit,
.ml-embedded .ml-form-recaptcha {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
}

.ml-embedded button.primary,
.ml-embedded button[type="submit"] {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  font-family: var(--font-sans) !important;
  font-size: 1.08rem !important;
  font-weight: 600 !important;
  background: var(--sage) !important;
  color: var(--paper) !important;
  border: 0 !important;
  border-radius: 10px !important;
  padding: 0.8rem 1rem !important;
  cursor: pointer !important;
}

.ml-embedded button.primary:hover,
.ml-embedded button[type="submit"]:hover {
  background: var(--sage-hover) !important;
  color: var(--paper) !important;
}

/* MailerLite keeps a second "loading" button in the DOM; don't force it visible. */
.ml-embedded button.loading,
.ml-embedded .ml-form-embedSubmitLoad {
  display: none !important;
}

.ml-embedded .ml-form-successContent h4,
.ml-embedded .ml-form-successContent p {
  font-family: var(--font-serif) !important;
  color: var(--charcoal) !important;
}

/* Mobile header: keep the wordmark and waitlist button, hide secondary links */
@media (max-width: 800px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .logo {
    font-size: 1.3rem;
  }
}
