/* ============================================================
   LOCAL FONTS
============================================================ */
/* latin-ext */
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/frank-ruhl-libre-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/frank-ruhl-libre-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/lexend-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/lexend-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   DESIGN TOKENS
============================================================ */
:root {
  --cream:       #FBF6EF;
  --tan:         #EAE3D2;
  --dark-brown:  #322D25;
  --brown:       #826644;
  --orange:      #D28810;
  --gold:        #F4BF77;
  --gold-dark:   #C7800E;
  --white:       #FFFFFF;
  --near-black:  #0F0A07;
  --green-dark:  #3A4A3F;
  --green-sage:  #627357;

  --font-serif: 'Frank Ruhl Libre', Georgia, serif;
  --font-sans:  'Lexend', system-ui, sans-serif;

  --radius-btn:  30px;
  --radius-card: 20px;

  --shadow-card: 10px 10px 18px rgba(0, 0, 0, 0.15);
  --shadow-img:  0px 4px 15px rgba(0, 0, 0, 0.15);

  --container-max: 1440px;
  --container-pad: clamp(20px, 6.3vw, 91px);
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans) !important;
  font-weight: 400;
  color: var(--dark-brown);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Neutralize Bootstrap 3 clearfix pseudo-elements from parent keysoft theme */
.container::before,
.container::after,
.row::before,
.row::after,
.navbar::before,
.navbar::after,
.navbar-header::before,
.navbar-header::after,
.navbar-collapse::before,
.navbar-collapse::after,
.clearfix::before,
.clearfix::after {
  content: none !important;
  display: none !important;
}

/* Override keysoft dynamic-keysoft.css font rules */
.container h1,
.container h2,
.container h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: normal;
  line-height: 1;
  letter-spacing: -0.01em;
}

/* Blog and inner page titles */
.blog .entry-title,
.blog h1.entry-title,
.single .entry-title,
.archive .entry-title {
  font-family: var(--font-serif);
  color: var(--dark-brown);
  display: block;
}
/* Hide parent theme blog intro artifacts */
.blog-header,
.blog-header .header-overlay,
.blog .page-header,
.archive .page-header,
.single .page-header {
  display: none;
}
/* Override WP Custom CSS that hides blog post elements */
.blog-single .blog-single-title {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.1;
  color: var(--dark-brown);
  margin: 40px 0 16px;
  text-align: left;
}
/* .blog-single .entry-meta {
  display: block;
  margin-bottom: 20px;
  font-size: 16px;
  color: var(--brown);
} */
.blog-single .wp-post-image {
  display: none;
  max-width: 100%;
  height: auto;
  margin-bottom: 24px;
}
/* Blog post content typography */
.blog-single .blog-content {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--dark-brown);
}
.blog-single .blog-content p {
  margin-bottom: 1.2em;
}
.blog-single .blog-content img {
  max-width: 100%;
  height: auto;
}

/* Blog archive pages */
.blog .posts-content,
.archive .posts-content {
  padding-top: 40px;
}
/* Blog single layout */
.single .container.blog-single {
  max-width: 1024px;
  margin: 0 auto;
  padding: 40px var(--container-pad) 60px;
}
.single .blog-single .blog-navigation {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--tan);
  display: flex;
  justify-content: space-between;
}
.single .blog-single .navigation a {
  font-family: var(--font-sans);
  color: var(--brown);
  font-size: 16px;
}
.single .blog-single .comments-area {
  margin-top: 40px;
}

/* Page template (default pages like /live-demo/) */
.page .container.page-content {
  margin: 40px auto 60px;
  padding: 0 var(--container-pad);
}
.page .page-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.1;
  color: var(--dark-brown);
  margin: 0 0 32px;
  text-align: left;
}
.page .page-body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--dark-brown);
}
.page .page-body p {
  margin-bottom: 1.2em;
}
.page .page-body img {
  max-width: 100%;
  height: auto;
}

/* Signup page — reduce gap between header and content */
.page-template-template-signup main {
  padding-top: 20px;
}
/* Override VC inline padding on signup section */
.page-template-template-signup #signup {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}
/* Keep signup page images square */
.page-template-template-signup .wpb_column.vc_col-sm-6 img {
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

/* ============================================================
   UTILITIES
============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

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

section[id] { scroll-margin-top: 109px; } /* 101px header + 8px breathing room */

.section-label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--brown);
  margin-bottom: 12px;
}
.section-label--gold   { color: var(--gold); }
.section-label--orange { color: var(--orange); }
.section-label--cream  { color: var(--tan); }

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1 {
  font-family: var(--font-serif) !important;
  font-weight: 600;
  font-size: clamp(42px, 5.3vw, 76px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--dark-brown);
}

h2 {
  font-family: var(--font-serif) !important;
  font-weight: 600;
  font-size: clamp(32px, 3.75vw, 54px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--dark-brown);
  margin-bottom: 48px;
}

h3 {
  font-family: var(--font-serif) !important;
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.587;
  letter-spacing: -0.01em;
  padding: 9px 18px;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  box-shadow: 12px 12px 20px rgba(0, 0, 0, 0.12);
}

.btn--lg {
  font-size: 20px;
  padding: 13px 25px;
  line-height: 1.3;
}

.btn--ghost {
  background: transparent;
  border: 2px solid var(--dark-brown);
  color: var(--dark-brown);
  padding: 11px 21px;
  border-radius: 40px;
}

.btn--header-trial {
  background: var(--tan);
  color: var(--brown);
  font-weight: 500;
}

.btn--outline-cream {
  background: transparent;
  border: 2px solid var(--tan);
  color: var(--tan);
  font-size: 18px;
  padding: 11px 25px;
}

.btn--footer-contact {
  background: var(--tan);
  color: var(--brown);
  font-size: 15px;
  padding: 9px 18px;
  margin-top: 0;
  align-self: flex-start;
}

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

/* ============================================================
   FEATURE STRIP
============================================================ */
.feature-strip {
  background: var(--green-dark);
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-strip span {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.177;
  letter-spacing: 0.01em;
  color: var(--tan);
}

/* ============================================================
   HEADER
============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 2px solid var(--tan);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 80px;
}

.logo img { width: 155px; height: auto; }
.logo-text {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--dark-brown);
}

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 0px;
}
.main-nav a {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.437;
  letter-spacing: -0.01em;
  color: var(--dark-brown);
  transition: color 0.15s;
}
.main-nav a:hover { color: var(--brown); text-decoration: none; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-login {
  font-size: 16px;
  font-weight: 400;
  color: var(--dark-brown);
  transition: color 0.15s;
}
.nav-login:hover { color: var(--brown); text-decoration: none; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 27px;
  height: 20px;
  padding: 0;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark-brown);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.mobile-nav-cta { display: none; }

/* ============================================================
   HERO
============================================================ */
.hero {
  background: var(--cream);
  padding-top: 60px;
  overflow: hidden;
}

.hero__text-wrap {
  max-width: 1014px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
  text-align: center;
}

.hero__text-wrap h1 { margin-bottom: 28px; }

.hero__text-wrap .section-label { margin-bottom: 16px; }

.hero__sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--dark-brown);
  max-width: 876px;
  margin-inline: auto;
  margin-bottom: 28px;
}

.hero__stats {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  padding: 0 28px;
  height: 44px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.hero__stats span {
  font-size: 17px;
  font-weight: 400;
  line-height: 0.98;
  color: var(--brown);
  white-space: nowrap;
}
.hero__stats strong {
  font-weight: 700;
  color: var(--orange);
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 48px;
}

.hero__demo-link {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.587;
  letter-spacing: -0.01em;
  color: var(--dark-brown);
  transition: color 0.15s;
  margin-top: 15px;
}
.hero__demo-link:hover {
  color: var(--brown);
}

.hero__images {
  width: min(1044px, calc(100% - (2 * var(--container-pad))));
  margin-inline: auto;
  position: relative;
  height: auto;
}

.hero__desktop-mock {
  width: min(936.78px, calc(100% - 107px));
  aspect-ratio: 936.78 / 661.11;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  background: transparent;
  position: relative;
}
.hero__desktop-mock img {
  position: absolute;
  width: 95.201%;
  height: 107.395%;
  left: -2.600%;
  top: -3.698%;
  max-width: none;
  object-fit: fill;
  opacity: 1;
}

.hero__mobile-mock {
  position: absolute;
  right: 0;
  top: 132.66px;
  width: 260.99px;
  aspect-ratio: 260.99 / 462.45;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  background: transparent;
}
.hero__mobile-mock img {
  position: absolute;
  width: 135.250%;
  height: 112.553%;
  left: -30.599%;
  top: -3.460%;
  max-width: none;
  object-fit: fill;
}

/* ============================================================
   BARNS
============================================================ */
.barns {
  background: var(--white);
  box-shadow: 0px -8px 9px rgba(0, 0, 0, 0.1);
  padding: 80px 0 72px;
  position: relative;
  z-index: 1;
}

.barns .section-label { margin-bottom: 10px; }
.barns h2 {
  font-size: clamp(28px, 3.75vw, 54px);
  max-width: 910px;
  margin-inline: auto;
  margin-bottom: 60px;
}

.barn-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 64px;
}

.barn-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--green-sage);
  display: flex;
  flex-direction: column;
}

.barn-card__image {
  height: 246px;
  background: var(--green-dark);
  overflow: hidden;
}
.barn-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.barn-card__body {
  background: var(--green-sage);
  padding: 28px 24px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.barn-card__body h3 {
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--cream);
}

.barn-card__body p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.35;
  color: var(--cream);
}

/* Barn type pills */
.barn-types { text-align: center; }

.barn-types__label {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--brown);
  margin-bottom: 24px;
}

.barn-types__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 246, 239, 0.75);
  border-radius: 20px;
  height: 44px;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.587;
  letter-spacing: -0.01em;
  color: var(--dark-brown);
}

/* ============================================================
   QUOTES / TESTIMONIAL
============================================================ */
.quotes {
  display: grid;
  grid-template-columns: 667fr 773fr;
  height: 560px;
  box-shadow: 0px -7px 9px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  background: var(--green-dark);
}

.quotes__carousel-viewport {
  overflow: hidden;
}

.quotes__carousel-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.quotes__track {
  display: flex;
  transition: transform 0.45s ease;
}

.quotes__slide {
  min-width: 100%;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 456px;
  margin-inline: auto;
}

.quotes__image-col {
  overflow: hidden;
}
.quotes__image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quotes__content-col {
  background: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 70px;
}

.quotes__arrow {
  position: static;
  width: 20px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(234, 227, 210, 0.7);
  transition: color 0.2s ease;
  z-index: 3;
  flex-shrink: 0;
}
.quotes__arrow:hover {
  color: var(--tan);
}
.quotes__arrow svg {
  width: 18px;
  height: 45px;
}
.quotes__slide .section-label {
  margin: 0 auto 34px;
  width: 338px;
  text-align: center;
}

.testimonial {
  padding: 0;
  margin: 0;
  border-left: none;
}

.testimonial > p {
  width: 100%;
  font-family: var(--font-serif) !important;
  font-weight: 600;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--tan);
  margin: 0 0 40px;
  padding: 0;
}

.testimonial__footer {
  width: 100%;
  max-width: 396px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid rgba(234, 227, 210, 0.4);
  padding-top: 20px;
  background: transparent;
}
.testimonial__footer::before {
  content: none;
}

.testimonial__avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--green-sage);
  flex-shrink: 0;
  overflow: hidden;
}
.testimonial__avatar img { width: 100%; height: 100%; object-fit: cover; }

.testimonial__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
.testimonial__meta strong {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--cream);
}
.testimonial__meta span {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--cream);
}

/* ============================================================
   FEATURES
============================================================ */
.features {
  background: var(--tan);
  box-shadow: 0px -7px 9px rgba(0, 0, 0, 0.15);
  padding: 59px 0 0;
}
.features .container { margin-bottom: 67px; }
.features h2 { margin-bottom: 0; }

.features-grid { display: flex; flex-direction: column; }
.features-grid > * + * { margin-top: 68px; }
.features-grid > :nth-child(4) { margin-top: 46px; }

/* Base card — centered 1046px, no bg (tan section shows) */
.feature-card {
  max-width: 1046px;
  margin-inline: auto;
  width: 100%;
  display: grid;
  grid-template-columns: 508px 468px;
  column-gap: 70px;
  min-height: 332px;
  align-items: start;
}

/* Row card — full-width cream band, image inset on left */
.feature-card--row {
  max-width: none;
  background: var(--cream);
  min-height: 471px;
  grid-template-columns: 468px 508px;
  column-gap: 70px;
  justify-content: center;
  padding-inline: 197px;
}
.feature-card--row .feature-card__image {
  order: 1;
  padding: 56px 0 54px;
}
.feature-card--row .feature-card__content {
  order: 2;
  padding: 68px 0 0;
}

/* Image column */
.feature-card__image {
  overflow: hidden;
  background: none;
}
.feature-card__image img {
  width: 100%;
}

/* Desktop: feature images narrower */
@media (min-width: 769px) {
  .feature-card__image img {
    width: 80%;
  }
}

/* Content column */
.feature-card__content {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
}
.feature-card__content h3 {
  color: var(--brown);
  font-size: clamp(22px, 2.4vw, 34px);
}
.feature-card__sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--dark-brown);
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.35;
  color: var(--dark-brown);
}
.feature-list img { flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   STATS
============================================================ */
.stats {
  position: relative;
  background:
    linear-gradient(90deg, rgba(58,74,63,1) 1%, rgba(0,0,0,0) 8%, rgba(0,0,0,0) 92%, rgba(58,74,63,1) 99%),
    linear-gradient(0deg, rgba(27,46,33,0.7) 49%, rgba(130,102,68,0.7) 93%),
    url('../images/stats-bg-5993ad.png') center / cover no-repeat;
  background-color: var(--green-dark);
  padding: 80px 0;
  overflow: hidden;
}

.stats__inner { position: relative; z-index: 1; }

.stats__heading {
  color: var(--tan);
  text-shadow: 0 0 20px rgba(0,0,0,0.3);
  margin-bottom: 48px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  max-width: 1163px;
  margin-inline: auto;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 104px;
  gap: 2px;
}

.stat__value {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(42px, 5.3vw, 76px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold);
}

.stat__label {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--tan);
  text-align: center;
}

/* ============================================================
   PLANS / PRICING
============================================================ */
.plans {
  background: var(--cream);
  padding: 80px 0;
}

.plans h2 { margin-bottom: 40px; }

/* Billing toggle */
.billing-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 25px;
  padding: 7.5px 8.96px;
  gap: 8px;
  margin-inline: auto;
  width: fit-content;
  max-width: 100%;
  height: 50px;
  align-items: center;
  margin-bottom: 56px;
  justify-content: flex-start;
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.587;
  color: var(--brown);
  border-radius: 20px;
  height: 35px;
  padding: 0 16px;
  margin: 0;
  min-width: 0;
  flex: 0 0 auto;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.billing-toggle .toggle-btn[data-period="monthly"] {
  padding-inline: 24px;
}
.billing-toggle .toggle-btn[data-period="annual"] {
  padding-inline: 20px;
}
.toggle-btn--active {
  background: var(--tan);
  color: var(--brown);
}

/* Plan cards */
.plan-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1064px;
  margin-inline: auto;
  margin-bottom: 40px;
}

.plan-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.plan-card:hover {
  border-color: var(--green-sage);
}

.plan-card__badge {
  position: absolute;
  top: 19.52px;
  right: 20px;
  background: var(--white);
  border: 2px solid var(--green-sage);
  border-radius: 20px;
  width: 140.64px;
  height: 35px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--green-sage);
  white-space: nowrap;
}

.plan-card__top {
  padding: 26px 34px 0;
  text-align: left;
}
.plan-card--featured .plan-card__top { padding-top: 26px; }

.plan-card__top h3 {
  font-size: 34px;
  margin-bottom: 8px;
}

.plan-card__sub {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.35;
  color: var(--dark-brown);
  margin-bottom: 14px;
}

.plan-card__price {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 4px;
  margin-bottom: 0;
}

.price-amount {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 54px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--orange);
}

.price-period {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.587;
  color: var(--orange);
  padding-bottom: 8px;
}

/* Plan features list (on dark background) */
.plan-features {
  background: var(--green-dark);
  padding: 24px 34px 20px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
  margin-bottom: 0;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.35;
  color: var(--cream);
}
.plan-features svg { flex-shrink: 0; margin-top: 2px; color: var(--tan); opacity: 0.7; }

.plan-card__cta {
  padding: 0 34px 26px;
  display: flex;
  justify-content: center;
  background: var(--green-dark);
}
.plan-card__cta .btn {
  width: min(100%, 266px);
}

.plan-trial {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.587;
  color: var(--dark-brown);
  text-align: left;
}

.plan-billing-note {
  min-height: 20px;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--brown);
}
.plan-billing-note:empty {
  min-height: 0;
  margin-bottom: 0;
}

.plans__footnote {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--dark-brown);
}
.plans__footnote strong { font-weight: 500; }

/* ============================================================
   FAQ
============================================================ */
.faq {
  background: rgba(234, 227, 210, 0.4);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.faq::before {
  content: "";
  position: absolute;
  width: 706.47px;
  height: 664.15px;
  right: -300px;
  top: 144.1px;
  background: url('../images/faq-horse.svg') center / contain no-repeat;
  pointer-events: none;
}
.faq .container {
  position: relative;
  z-index: 1;
}

.faq h2 { margin-bottom: 48px; color: var(--brown); }

.faq-list {
  max-width: 830px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--brown);
}
.faq-item:first-child { border-top: 1px solid var(--brown); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  text-align: left;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--brown);
  background: none;
  border: none;
}

.faq-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--orange);
  transition: transform 0.3s ease;
}
.faq-arrow svg {
  width: 19px;
  height: 12px;
}
.faq-question[aria-expanded="true"] .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-answer.is-open {
  max-height: 400px;
  padding-bottom: 24px;
}
.faq-answer p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--dark-brown);
}

/* ============================================================
   CTA SECTION
============================================================ */
.cta-section {
  display: grid;
  grid-template-columns: 627fr 813fr;
  min-height: 360px;
  background: var(--near-black);
}

.cta-section__image-col {
  overflow: hidden;
}
.cta-section__image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-section__content-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 80px 60px 56px;
  gap: 20px;
}

.cta-section__content-col h2 {
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--white);
  margin-bottom: 0;
  max-width: 659px;
}

.cta-section__content-col p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--tan);
  max-width: 640px;
}

.cta-section__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--tan);
  padding: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 315px 1fr;
  gap: clamp(32px, 8vw, 115px);
  padding-top: 40px;
  padding-bottom: 38px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 315px;
}
.footer-brand .logo {
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--dark-brown);
  margin-bottom: 6px;
  text-align: left;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(24px, 9.5vw, 136px);
  align-items: start;
  max-width: none;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.587;
  letter-spacing: -0.01em;
  color: var(--dark-brown);
  margin-bottom: 12px;
  text-align: left;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.site-footer .footer-nav .footer-col li {
  width: auto;
  display: list-item;
  float: none;
  margin-bottom: 0;
  text-align: left;
}
.site-footer .footer-nav .footer-col a {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--dark-brown);
  transition: color 0.15s;
  white-space: nowrap;
  text-transform: none;
  float: none;
  display: inline;
  padding: 0;
  text-transform: capitalize;
}
.site-footer .footer-nav .footer-col a:hover { color: var(--brown); }

.footer-col--download {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-badge img { width: 130px; height: auto; }

.footer-bottom {
  border-top: 1px solid var(--tan);
  padding: 16px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--brown);
}

/* ============================================================
   RESPONSIVE — INTERMEDIATE (1025px – 1439px)
   Footer-only fix: desktop column-gap: 136px only fits at ≥1440px
============================================================ */
@media (min-width: 1025px) and (max-width: 1439px) {
  .footer-inner { gap: clamp(32px, 6vw, 90px); }
  .footer-nav { column-gap: clamp(24px, 7vw, 90px); }
}

/* ============================================================
   RESPONSIVE — TABLET (769px – 1024px)
============================================================ */
@media (max-width: 1024px) {
  :root { --container-pad: clamp(16px, 4vw, 56px); }

  /* Barn cards: 2-col, 3rd card centred */
  .barn-cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .barn-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 460px;
    margin-inline: auto;
    width: 100%;
  }

  /* Features: tighter padding at tablet */
  .features-grid > * + * { margin-top: 44px; }
  .features-grid > :nth-child(4) { margin-top: 32px; }
  .feature-card { grid-template-columns: 1fr 44%; column-gap: 28px; padding-inline: clamp(16px, 4vw, 56px); }
  .feature-card--row {
    grid-template-columns: 44% 1fr;
    column-gap: 28px;
    padding-inline: clamp(20px, 8vw, 120px);
  }
  .feature-card--row .feature-card__content { padding-top: 52px; }
  .feature-card--row .feature-card__image { padding: 52px 0; }


  /* Stats: 2×2 grid */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Plans: keep 2-col, reduce gap */
  .plan-cards { gap: 20px; }

  /* Quotes: tighter padding */
  .quotes { grid-template-columns: 1fr 1fr; }
  .quotes__content-col { padding: 48px 40px; }
  .quotes__carousel-row { grid-template-columns: 20px minmax(0, 1fr) 20px; gap: 14px; }
  .quotes__slide { min-height: 560px; max-width: 100%; }
  .quotes__slide .section-label { width: auto; margin-bottom: 28px; text-align: center; }
  .testimonial > p { font-size: clamp(20px, 2.4vw, 34px); margin-bottom: 34px; }
  .testimonial__footer { width: 100%; }

  /* CTA: tighter padding */
  .cta-section__content-col { padding: 48px 40px; }

  /* Footer: 2-row stacked layout */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { max-width: none; }
  .footer-nav { grid-template-columns: repeat(3, 1fr); gap: 32px; }

  /* Header: hamburger mode */
  .header-inner { height: 72px; }
  section[id] { scroll-margin-top: 80px; } /* 72px header + 8px breathing room */
  .header-cta { display: none; }
  .hamburger { display: flex; }
  .main-nav {
    position: fixed;
    top: 73px;
    left: 0;
    width: 100%;
    height: calc(100dvh - 73px);
    background: var(--cream);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    justify-content: flex-start;
    padding: 28px var(--container-pad) 40px;
    transition: clip-path 0.35s ease, visibility 0s linear 0.35s;
    z-index: 99;
    overflow-y: auto;
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
  }
  .main-nav.is-open {
    clip-path: inset(0 0 0% 0);
    visibility: visible;
    transition: clip-path 0.35s ease, visibility 0s linear 0s;
  }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 28px; }
  .main-nav a { font-size: 20px; }
  .mobile-nav-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--tan);
  }
  .mobile-nav-cta .nav-login {
    font-size: 18px;
    font-weight: 500;
  }
  .mobile-nav-cta .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
============================================================ */
@media (max-width: 768px) {
  :root { --container-pad: 16px; }

  /* ── Typography ── */
  h1 { font-size: 52px; }
  h2 { font-size: 40px; }
  .barns h2 { font-size: 40px; }
  h3 { font-size: 32px; }
  .barn-card__body h3,
  .feature-card__content h3 { font-size: 32px; }
  .cta-section__content-col h2 { font-size: 32px; }

  /* ── Hero ── */
  .hero { padding-top: 40px; }
  .hero__stats {
    flex-direction: column;
    align-items: center;
    max-width: 277px;
    min-height: 120px;
    height: auto;
    padding: 16px 24px;
    gap: 10px;
  }
  .hero__stats span { font-size: 16px; line-height: 1.4; }
  .hero__images {
    width: min(358px, 100%);
    height: auto;
  }
  .hero__desktop-mock {
    width: 100%;
    aspect-ratio: 358 / 226.75;
  }
  .hero__mobile-mock {
    width: 89.52px;
    top: 45.5px;
    right: 0;
    aspect-ratio: 89.52 / 158.61;
    box-shadow: none;
  }

  /* ── Barns ── */
  .barns { padding: 56px 0; }
  .barn-cards { grid-template-columns: 1fr; max-width: 100%; gap: 16px; }
  .barn-card:nth-child(3) { grid-column: auto; max-width: none; margin-inline: 0; }

  /* Barn type pills: full-width stacked */
  .barn-types__pills { flex-direction: column; align-items: stretch; gap: 12px; }
  .pill {
    display: flex;
    width: 100%;
    max-width: 361px;
    height: 50px;
    margin-inline: auto;
    justify-content: center;
    padding: 0 20px;
    border-radius: 20px;
  }

  /* ── Quotes ── */
  .quotes { height: auto; grid-template-columns: 1fr; }
  .quotes__slide { min-height: auto; max-width: 100%; }
  .quotes__image-col { height: min(330px, 84vw); }
  .quotes__content-col { padding: 45px 16px 40px; }
  .quotes__carousel-row { grid-template-columns: 18px minmax(0, 1fr) 18px; gap: 12px; }
  .quotes__arrow { width: 18px; height: 45px; }
  .quotes__arrow svg { width: 18px; height: 45px; }
  .quotes__slide .section-label { margin-bottom: 20px; font-size: 18px; font-weight: 500; text-align: center; }
  .testimonial > p { margin-bottom: 28px; font-size: 30px; text-align: center; }

  /* ── Features ── */
  .features {
    padding-top: 43px;
  }
  .features .container {
    margin-bottom: 32px;
  }
  .features-grid {
    align-items: stretch;
  }
  .feature-card,
  .feature-card--row {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 361px;
    margin-inline: auto;
    padding-inline: 0;
    min-height: 0;
  }
  .feature-card {
    background: transparent;
  }
  .feature-card--row {
    max-width: 100%;
    background: var(--cream);
    padding: 44px 0 48px;
  }
  .feature-card--row .feature-card__content,
  .feature-card--row .feature-card__image {
    width: 100%;
    max-width: 361px;
    margin-inline: auto;
  }
  .feature-card__image {
    order: 1 !important;
    height: auto;
    padding: 0 !important;
    margin-top: 22px;
  }
  .feature-card__image img {
    height: auto;
  }
  .feature-card__content {
    order: 0 !important;
    padding: 0 1px !important;
    gap: 14px;
  }
  .feature-list {
    margin-top: 0;
    gap: 10px;
  }

  /* ── Stats ── */
  .stats {
    min-height: 653px;
    padding: 44px 0 54px;
    background:
      linear-gradient(90deg, rgba(58,74,63,0.78) 0%, rgba(58,74,63,0.06) 15%, rgba(58,74,63,0.06) 85%, rgba(58,74,63,0.78) 100%),
      linear-gradient(0deg, rgba(27,46,33,0.58) 42%, rgba(130,102,68,0.45) 100%),
      url('../images/stats-bg-5993ad.png') center / cover no-repeat;
  }
  .stats .section-label {
    font-size: 18px;
    margin-bottom: 20px;
  }
  .stats__heading {
    font-size: 40px;
    margin-bottom: 34px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    max-width: 268px;
    margin-inline: auto;
    margin-top: 0;
    gap: 27px;
  }
  .stat {
    min-height: 78px;
    padding: 0;
    border: none;
    gap: 2px;
  }
  .stat__value { font-size: 52px; }
  .stat__label { font-size: 18px; }

  /* ── Plans ── */
  .billing-toggle {
    width: fit-content;
    max-width: calc(100% - 24px);
    margin-inline: auto;
  }
  .toggle-btn {
    padding-inline: 12px;
    font-size: 15px;
  }
  .billing-toggle .toggle-btn[data-period="monthly"] {
    padding-inline: 18px;
  }
  .billing-toggle .toggle-btn[data-period="annual"] {
    padding-inline: 14px;
  }
  .toggle-btn { text-align: center; }
  .plan-cards { grid-template-columns: 1fr; max-width: 100%; gap: 24px; }
  .plan-card__top {
    padding: 28px 30px 16px;
  }
  .plan-card--featured .plan-card__top {
    padding-top: 28px;
  }
  .plan-card__badge {
    top: 19.52px;
    right: 20px;
  }
  .plan-features {
    padding: 24px 30px 20px;
    margin-top: 20px;
  }
  .plan-card__cta {
    padding: 0 30px 24px;
  }

  /* ── FAQ ── */
  .faq {
    background: rgba(234, 227, 210, 0.4);
    position: relative;
    overflow: hidden;
  }
  .faq::before {
    width: 450px;
    height: 423px;
    inset: auto -180px auto auto;
    top: 270px;
    background: url('../images/faq-horse.svg') center / contain no-repeat;
    pointer-events: none;
  }
  .faq .container {
    position: relative;
    z-index: 1;
  }
  .faq-answer p { color: var(--brown); }

  /* ── CTA ── */
  .cta-section { grid-template-columns: 1fr; }
  .cta-section__image-col { height: min(328px, 83.5vw); }
  .cta-section__content-col { padding: 40px 24px; }
  .cta-section__content-col h2,
  .cta-section__content-col p { max-width: none; }
  .cta-section__actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .cta-section__actions .btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 60px;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  /* ── Footer ── */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 50px;
    padding-bottom: 20px;
  }
  .footer-brand {
    max-width: 361.36px;
    margin-inline: auto;
  }
  .footer-brand .logo { margin-bottom: 14px; }
  .footer-tagline {
    font-size: 17px;
    line-height: 1.35;
    margin-bottom: 8px;
  }
  .footer-nav {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "product resources"
      "download download";
    column-gap: 32px;
    row-gap: 24px;
    max-width: 361px;
    margin-inline: auto;
  }
  .footer-col--product { grid-area: product; }
  .footer-col--resources { grid-area: resources; }
  .footer-col--download {
    grid-area: download;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .footer-col--download h4 {
    margin-bottom: 27px;
  }
  .footer-col h4 {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 12px;
  }
  .footer-col ul { gap: 14px; }
  .footer-col a {
    font-size: 17px;
    line-height: 1.35;
  }
  .btn--footer-contact {
    background: var(--tan);
    border: 2px solid var(--tan);
    color: var(--brown);
    font-size: 18px;
    width: 100%;
    height: 60px;
    justify-content: center;
    max-width: 358px;
    align-self: flex-start;
    margin-top: 0;
    padding: 13px 25px;
  }
  .footer-bottom p {
    font-size: 16px;
    line-height: 1.4;
    max-width: 360px;
    margin-inline: auto;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
============================================================ */
@media (max-width: 480px) {
  h1 { font-size: 44px; }
  h2, .barns h2 { font-size: 34px; }
  .hero__stats { max-width: 100%; }
}

/* ============================================================
   RESPONSIVE — SMALL TABLET (601px – 768px)
   No dedicated Figma tablet comps; keep nav compact/mobile,
   but restore desktop-like section structure.
============================================================ */
@media (min-width: 601px) and (max-width: 768px) {
  /* Features: restore alternating row layout */
  .features {
    padding-top: 59px;
  }
  .features .container {
    margin-bottom: 56px;
  }
  .features-grid {
    align-items: stretch;
  }
  .features-grid > * + * { margin-top: 44px; }
  .features-grid > :nth-child(3) { margin-top: 44px; }
  .features-grid > :nth-child(4) { margin-top: 32px; }
  .features-grid > :nth-child(1),
  .features-grid > :nth-child(2),
  .features-grid > :nth-child(3),
  .features-grid > :nth-child(4) {
    min-height: 0;
  }
  .feature-card,
  .feature-card--row {
    display: grid;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    background: transparent;
    padding-inline: 0;
  }
  .feature-card {
    grid-template-columns: 1fr 44%;
    column-gap: 28px;
    padding-inline: clamp(16px, 4vw, 56px);
  }
  .feature-card--row {
    grid-template-columns: 44% 1fr;
    column-gap: 28px;
    padding-inline: clamp(20px, 8vw, 120px);
    background: var(--cream);
  }
  .feature-card__image {
    order: initial !important;
    height: auto;
    margin-top: 0;
    padding: 0 !important;
  }
  .feature-card--row .feature-card__image {
    order: 1 !important;
    padding: 52px 0 !important;
  }
  /* .feature-card__image img {
    height: 332px;
  } */
  .feature-card__content {
    order: initial !important;
    padding: 0 !important;
    gap: 16px;
  }
  .feature-card--row .feature-card__content {
    order: 2 !important;
    padding-top: 52px !important;
    padding-bottom: 52px !important;
  }
  .feature-list {
    margin-top: 4px;
    gap: 14px;
  }

  /* Testimonials: keep two-column tablet treatment */
  .quotes {
    min-height: 560px;
    grid-template-columns: 1fr 1fr;
  }
  .quotes__image-col {
    height: auto;
  }
  .quotes__content-col {
    padding: 48px 28px;
  }
  .quotes__carousel-row {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 14px;
  }
  .quotes__slide {
    min-height: 560px;
    max-width: 100%;
  }
  .quotes__slide .section-label {
    width: auto;
    margin-bottom: 28px;
    text-align: center;
  }
  .testimonial > p {
    font-size: clamp(20px, 2.4vw, 34px);
    margin-bottom: 34px;
  }
  .testimonial__footer {
    width: 100%;
  }
}

.navigation.pagination a {
  margin: 0 5px;
}