/* ============================================
   Nav
   ============================================ */

.banner {
  background: var(--charcoal);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--charcoal-border);
}

.banner-inner {
  max-width: var(--content-width);
  margin-inline: auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.banner .title h1 {
  font-size: 1.4rem;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.banner .title a {
  display: block;
}

.links-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.links-container .link a {
  color: var(--muted-on-dark);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.links-container .link a:hover,
.links-container .link a[aria-current="page"] {
  color: var(--amber);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 44rem) {
  .nav-toggle {
    display: block;
  }

  .links-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--charcoal);
    border-bottom: 1px solid var(--charcoal-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .links-container.is-open {
    max-height: 20rem;
  }

  .links-container .link {
    width: 100%;
  }

  .links-container .link a {
    display: block;
    padding: 1rem 1.5rem;
    width: 100%;
  }
}

/* ============================================
   Hero
   ============================================ */

.hero {
  background: var(--charcoal);
  color: var(--cream);
  padding: clamp(4rem, 10vw, 7rem) 1.5rem clamp(3.5rem, 8vw, 6rem);
}

.hero-inner {
  max-width: var(--content-width);
  margin-inline: auto;
}

.hero h1 {
  max-width: 30rem;
}

.hero .lede {
  margin-top: 1.5rem;
  max-width: var(--measure);
  font-size: 1.15rem;
  color: var(--muted-on-dark);
}

.hero .actions {
  margin-top: 2.25rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   Problem
   ============================================ */

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

.problem-inner {
  max-width: var(--content-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 22rem) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 44rem) {
  .problem-inner {
    grid-template-columns: 1fr;
  }
}

.problem-inner > p {
  margin-top: 1rem;
  color: var(--muted);
}

.problem-list {
  border-top: 1px solid var(--border-light);
}

.problem-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-size: 1.05rem;
}

.problem-list li::before {
  content: "";
  width: 0.6rem;
  height: 2px;
  background: var(--amber);
  flex-shrink: 0;
  transform: translateY(-0.4em);
}

/* ============================================
   How it works
   ============================================ */

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

.howitworks-inner {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.howitworks h2 {
  margin-bottom: 2.5rem;
}

/* ============================================
   The difference (pull-quote, dark break)
   ============================================ */

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

.thedifference-inner {
  max-width: var(--content-width);
  margin-inline: auto;
}

.thedifference h3 {
  color: var(--muted-on-dark);
  font-weight: 500;
  max-width: 30rem;
}

.thedifference h4 {
  color: var(--cream);
  margin-top: 0.35rem;
  margin-bottom: 1.75rem;
}

.thedifference .body {
  max-width: var(--measure);
  color: var(--muted-on-dark);
}

.pull-quote {
  margin-top: 2.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.1rem);
  color: var(--amber);
  max-width: 34rem;
  line-height: 1.35;
  border-left: 2px solid var(--amber);
  padding-left: 1.5rem;
}

/* ============================================
   Built around your CRM
   ============================================ */

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

.howitfits-inner {
  max-width: var(--content-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 24rem) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 44rem) {
  .howitfits-inner {
    grid-template-columns: 1fr;
  }
}

.howitfits p {
  margin-top: 1rem;
  color: var(--muted);
}

.howitfits ul {
  border-top: 1px solid var(--border-light);
}

.howitfits li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 1.05rem;
}

/* ============================================
   CTA band
   ============================================ */

.cta {
  background: var(--charcoal);
  color: var(--cream);
  text-align: center;
}

.cta-inner {
  max-width: 34rem;
  margin-inline: auto;
}

.cta h2 {
  margin-bottom: 1.75rem;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--charcoal);
  color: var(--muted-on-dark);
  border-top: 1px solid var(--charcoal-border);
}

.footer-inner {
  max-width: var(--content-width);
  margin-inline: auto;
  padding: 3rem 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand h2 {
  font-size: 1.25rem;
  color: var(--cream);
}

.footer-brand p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  max-width: 20rem;
}

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

.footer-links a {
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--amber);
}

.footer-bottom {
  max-width: var(--content-width);
  margin-inline: auto;
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--charcoal-border);
  font-size: 0.8rem;
  color: var(--muted-on-dark);
}

/* ============================================
   Features page
   ============================================ */

.features-list {
  max-width: var(--content-width);
  margin-inline: auto;
  border-top: 1px solid var(--border-light);
}

.feature {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: minmax(0, 16rem) 1fr;
  gap: 2rem;
  align-items: baseline;
}

@media (max-width: 44rem) {
  .feature {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.feature h2 {
  font-size: 1.4rem;
}

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

/* ============================================
   Pricing page
   ============================================ */

.pricing-wrap {
  max-width: 34rem;
  margin-inline: auto;
}

.price-card {
  background: var(--charcoal);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3rem);
  margin-top: 2.5rem;
}

.price-card .amount {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--amber);
  font-weight: 600;
}

.price-card .period {
  color: var(--muted-on-dark);
  margin-top: 0.25rem;
}

.price-card hr {
  border: none;
  border-top: 1px solid var(--charcoal-border);
  margin: 1.75rem 0;
}

.price-card .included {
  font-weight: 600;
  margin-bottom: 1rem;
}

.price-card ul li {
  padding: 0.6rem 0;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  color: var(--muted-on-dark);
}

.price-card ul li::before {
  content: "";
  width: 0.6rem;
  height: 2px;
  background: var(--amber);
  flex-shrink: 0;
  transform: translateY(-0.4em);
}

.price-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.pricing-cta {
  margin-top: 2rem;
}

/* ============================================
   Team cards (about page)
   ============================================ */

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

.team h2 {
  margin-bottom: 2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1.5rem;
  max-width: 40rem;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.team-card:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
}

.team-card img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.team-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

.team-role {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* ============================================
   Example output (homepage)
   ============================================ */

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

.exampleoutputs-inner {
  max-width: 40rem;
}

.exampleoutputs h2 {
  margin-bottom: 0.5rem;
}

.example-toggle {
  margin-top: 2rem;
}

.example-toggle summary {
  cursor: pointer;
  list-style: none;
  width: fit-content;
}

.example-toggle summary::-webkit-details-marker {
  display: none;
}

.example-note {
  margin-top: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.example-note-header {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 0.5rem;
}

.example-note-title {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.example-note h5 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin-top: 1.35rem;
  margin-bottom: 0.35rem;
}

.example-note h5:first-of-type {
  margin-top: 0;
}

.example-note p,
.example-note li {
  font-size: 0.95rem;
  color: var(--ink);
}

.example-note ol {
  list-style: decimal;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.example-note ol li {
  padding: 0.25rem 0;
}

/* ============================================
   About page
   ============================================ */

.about-content {
  max-width: var(--measure);
  margin-inline: auto;
}

.about-content p {
  margin-top: 1.25rem;
  color: var(--muted);
}

.about-content p:first-of-type {
  margin-top: 1.5rem;
}

/* ============================================
   Contact page
   ============================================ */

.contact-wrap {
  max-width: 34rem;
  margin-inline: auto;
}

.contact-wrap > p {
  margin-top: 0.75rem;
  color: var(--muted);
}

.contact-form {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.field label {
  font-size: 0.9rem;
  font-weight: 600;
}

.field .optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field textarea {
  border: 1px solid var(--border-light);
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

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

.contact-form .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* ============================================
   Legal pages (privacy policy, terms, etc.)
   ============================================ */

.legal-content {
  max-width: 42rem;
  margin-inline: auto;
}

.legal-content h1 {
  margin-bottom: 0.5rem;
}

.legal-updated {
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.legal-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  max-width: none;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 0;
}

.legal-content li {
  color: var(--muted);
  padding: 0.4rem 0 0.4rem 1.25rem;
  position: relative;
}

.legal-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 0.6rem;
  height: 2px;
  background: var(--amber);
}

.legal-content a {
  color: var(--amber-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--amber);
}

.legal-content strong {
  color: var(--ink);
}

/* ============================================
   Blog directory
   ============================================ */

.blog-list {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border-light);
}

.blog-list-item {
  display: block;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border-light);
  transition: padding-left 0.15s ease;
}

.blog-list-item:hover {
  padding-left: 0.5rem;
}

.blog-list-item h2 {
  font-size: 1.3rem;
  color: var(--ink);
}

.blog-list-item p {
  margin-top: 0.4rem;
  color: var(--muted);
  max-width: 38rem;
}

.blog-list-readmore {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--amber-dark);
}

.blog-list-item:hover .blog-list-readmore {
  color: var(--amber);
}

/* ============================================
   Blog post
   ============================================ */

.blog-post {
  max-width: 42rem;
  margin-inline: auto;
}

.blog-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.15s ease;
}

.blog-back:hover {
  color: var(--amber-dark);
}

.blog-post h1 {
  margin-bottom: 0.5rem;
}

.blog-post-date {
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
}

.blog-post-body {
  font-size: 1.05rem;
}

.blog-post-body h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.blog-post-body h2:first-child {
  margin-top: 0;
}

.blog-post-body p {
  max-width: none;
  color: var(--ink);
  margin-bottom: 1.1rem;
  line-height: 1.7;
}

.blog-pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--amber-dark);
  border-left: 2px solid var(--amber);
  padding: 0.25rem 0 0.25rem 1.5rem;
  margin: 1.75rem 0;
}
