/* ============================================================
   Degluten — styles.css
   Brand colors:
     --emerald   #267A52   Primary
     --gold      #F0B429   Accent only
     --charcoal  #3A3A3A   Neutral dark
     --cream     #FAF7F1   Light neutral
============================================================ */

/* --- Reset & Base ---------------------------------------- */

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

:root {
  --emerald:       #267A52;
  --emerald-dark:  #1A5C3C;
  --emerald-light: #EAF4EE;
  --gold:          #F0B429;
  --gold-dark:     #C8921A;
  --charcoal:      #3A3A3A;
  --charcoal-light:#6B6B6B;
  --cream:         #FAF7F1;
  --white:         #FFFFFF;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius:     8px;
  --shadow:     0 2px 16px rgba(0, 0, 0, 0.08);
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  color: var(--charcoal);
  background-color: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  line-height: 1.25;
  color: var(--charcoal);
}

a {
  color: var(--emerald);
  text-decoration: none;
}

/* --- Layout --------------------------------------------- */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --------------------------------------------- */

.site-header {
  background-color: var(--cream);
  border-bottom: 1px solid rgba(38, 122, 82, 0.12);
  padding: 20px 0;
}

.site-logo {
  height: 52px;
  width: auto;
}

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

.hero {
  background-color: var(--emerald-dark);
  padding: 96px 0 80px;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-text {
  max-width: 680px;
  text-align: center;
}

.hero-logo-circle {
  width: 100px;
  height: 100px;
  background-color: var(--cream);
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  padding: 14px;
}

.hero-logo-circle img {
  width: 64px;
  height: auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.125rem;
  color: rgba(250, 247, 241, 0.85);
  max-width: 580px;
  margin: 0 auto 16px;
}

.hero-app-note {
  font-size: 1.125rem;
  font-weight: 700;
  color: rgba(250, 247, 241, 0.85);
  margin-bottom: 32px;
}

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

.btn-primary {
  display: inline-block;
  background-color: var(--gold);
  color: var(--charcoal);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: background-color var(--transition), transform var(--transition);
  letter-spacing: 0.01em;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--gold-dark);
  color: var(--white);
  transform: translateY(-1px);
  outline: none;
}

/* --- Sections shared ------------------------------------ */

section {
  padding: 80px 0;
}

.section-intro {
  font-size: 1.0625rem;
  color: var(--charcoal-light);
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

/* --- Why This Matters ----------------------------------- */

.why-matters {
  background-color: var(--white);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background-color: var(--cream);
  border: 1px solid rgba(38, 122, 82, 0.14);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.card p {
  text-align: center;
}

.card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--emerald);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin: 0 auto 20px;
}

.card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--emerald-dark);
}

.card p {
  font-size: 0.9375rem;
  color: var(--charcoal-light);
}

/* --- How Degluten Is Different -------------------------- */

.differentiation {
  background-color: var(--cream);
}

.diff-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 680px;
  margin: 0 auto;
}

.diff-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.diff-marker {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  background-color: var(--gold);
  border-radius: 2px;
  margin-top: 7px;
  transform: rotate(45deg);
}

.diff-content h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--emerald-dark);
}

.diff-content p {
  font-size: 0.9375rem;
  color: var(--charcoal-light);
}

/* --- Email Signup --------------------------------------- */

.signup {
  background-color: var(--emerald);
  padding: 96px 0;
}

.signup-inner {
  text-align: center;
}

.signup h2 {
  color: var(--cream);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.signup-sub {
  color: rgba(250, 247, 241, 0.85);
  max-width: 520px;
  margin: 16px auto 40px;
  font-size: 1.0625rem;
}

/* ============================================================
   Mailchimp embed wrapper.
   Mailchimp's generated form styles will apply inside here.
   You may add overrides below to match brand colors.
============================================================ */
.mailchimp-embed {
  max-width: 520px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 32px;
}

/* Placeholder shown before real Mailchimp code is inserted */
.signup-placeholder {
  color: rgba(250, 247, 241, 0.6);
  font-size: 0.9375rem;
  font-style: italic;
}

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

.site-footer {
  background-color: var(--charcoal);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-logo {
  height: 40px;
  width: auto;
  /* Filter inverts the logo to appear light on the dark footer.
     Remove this if a light-colored logo asset is available. */
  filter: brightness(0) invert(1);
  opacity: 0.75;
}

.footer-copy {
  font-size: 0.875rem;
  color: rgba(250, 247, 241, 0.55);
}

.patent-note {
  margin-top: 40px;
  font-size: 0.8125rem;
  color: var(--charcoal);
  opacity: 0.45;
  text-align: center;
}

/* --- Mailchimp Form ------------------------------------- */

.mailchimp-embed,
#mc_embed_shell,
#mc_embed_signup,
#mc_embed_signup form {
  background: transparent !important;
  max-width: 520px;
  margin: 0 auto;
}

#mc_embed_signup h2 {
  display: none; /* section already has heading */
}

.indicates-required {
  font-size: 0.8125rem;
  color: rgba(250, 247, 241, 0.65);
  margin-bottom: 20px;
  text-align: right;
}

.asterisk {
  color: var(--gold);
}

.mc-field-group {
  margin-bottom: 20px;
}

.mc-field-group label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 6px;
}

.mc-field-group input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: var(--font);
  border: 2px solid rgba(250, 247, 241, 0.3);
  border-radius: 6px;
  background: rgba(250, 247, 241, 0.1);
  color: var(--cream);
  outline: none;
  transition: border-color 0.2s;
}

.mc-field-group input[type="email"]::placeholder {
  color: rgba(250, 247, 241, 0.4);
}

.mc-field-group input[type="email"]:focus {
  border-color: var(--gold);
  background: rgba(250, 247, 241, 0.15);
}

.mc-field-group.input-group strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 12px;
}

.mc-field-group.input-group ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.mc-field-group.input-group ul li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mc-field-group.input-group ul li input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  flex-shrink: 0;
  cursor: pointer;
}

.mc-field-group.input-group ul li label {
  font-size: 0.9375rem;
  color: rgba(250, 247, 241, 0.85);
  font-weight: 400;
  cursor: pointer;
}

#mc-embedded-subscribe {
  display: inline-block;
  background-color: var(--gold);
  color: var(--charcoal);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 36px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background-color 0.2s, color 0.2s, transform 0.15s;
}

#mc-embedded-subscribe:hover,
#mc-embedded-subscribe:focus {
  background-color: var(--gold-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.optionalParent .foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#mce-error-response,
#mce-success-response {
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 0;
  text-align: center;
}

#mce-error-response {
  color: #ffb3b3;
}

#mce-success-response {
  color: var(--gold);
}

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

@media (max-width: 720px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 72px 0 60px;
  }

  section {
    padding: 60px 0;
  }

  .signup {
    padding: 72px 0;
  }

  .mailchimp-embed {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .site-logo {
    height: 44px;
  }

  .btn-primary {
    display: block;
    text-align: center;
    padding: 16px 24px;
  }
}
