/* ============ Design Tokens ============ */
:root {
  --background: hsl(39, 55%, 98%);
  --foreground: hsl(220, 24%, 12%);
  --card: hsl(0, 0%, 100%);
  --muted: hsl(39, 30%, 94%);
  --muted-foreground: hsl(220, 14%, 28%);
  --border: hsl(35, 24%, 78%);
  --accent: hsl(28, 92%, 48%);
  --accent-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(39, 60%, 92%);

  --nav-bg: hsl(0, 0%, 100%);
  --hero-bg: hsl(39, 50%, 97%);
  --services-bg: hsl(0, 0%, 100%);
  --comparison-bg: hsl(39, 45%, 93%);
  --howit-bg: hsl(0, 0%, 100%);
  --trust-bg: hsl(0, 0%, 100%);
  --cta-bg: hsl(30, 90%, 55%);

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* ============ Reset ============ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

a {
  text-decoration: none;
  color: inherit;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
button,
.btn-outline,
.btn-accent,
.btn-cta {
  transition: background-color .28s ease, color .28s ease, border-color .28s ease, box-shadow .28s ease, opacity .28s ease, transform .28s ease;
}

/* ============ Layout ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.section {
  padding: 5rem 0;
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}

/* ============ Navbar ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--nav-bg);
  transition: box-shadow .3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--foreground);
}

.logo span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-links {
  display: none;
  gap: 1.35rem;
  align-items: center;
}

.nav-link {
  font-size: .95rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color .2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--foreground);
  border-radius: 9999px;
  padding: .5rem 1.25rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--foreground);
  transition: background .2s, color .2s;
}

.btn-outline:hover {
  background: var(--foreground);
  color: var(--accent-foreground);
}

.nav-cta {
  display: none;
}

.nav-toggle {
  display: block;
  color: var(--foreground);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1.5rem 0;
  background: var(--nav-bg);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}

.mobile-menu.open {
  max-height: 320px;
  padding-bottom: 1.5rem;
}

@media (min-width: 960px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-menu {
    display: none;
  }
}

/* ============ Hero ============ */
.hero {
  background: var(--hero-bg);
  padding: 7rem 0 4rem;
}

.hero-inner {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 2.5rem;
}

.hero-text {
  flex: 1;
  max-width: 40rem;
}

.hero-kicker {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  background: hsla(28, 92%, 48%, .12);
  border: 1px solid hsla(28, 92%, 48%, .28);
  border-radius: 9999px;
  padding: .35rem .7rem;
  margin-bottom: .95rem;
}

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1rem;
}

.hero-text p {
  color: var(--muted-foreground);
  font-size: 1.04rem;
  max-width: 35rem;
  margin-bottom: 1.35rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 1rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  font-size: .86rem;
  font-weight: 600;
  color: var(--foreground);
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 9999px;
  padding: .38rem .7rem;
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: var(--accent-foreground);
  font-weight: 600;
  padding: .75rem 1.75rem;
  border-radius: .5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
  transition: opacity .2s;
}

.btn-accent:hover {
  opacity: .9;
}

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

.hero-image img {
  width: 100%;
  max-width: 36rem;
  filter: drop-shadow(0 20px 25px rgba(0, 0, 0, .15));
}

@media (min-width: 768px) {
  .hero {
    padding: 9rem 0 6rem;
  }

  .hero-inner {
    flex-direction: row;
  }

  .hero-text h1 {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 6.5rem 0 3.5rem;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .btn-accent,
  .hero-actions .btn-outline {
    justify-content: center;
  }
}

/* ============ Eyebrow + Heading ============ */
.eyebrow {
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--muted-foreground);
  font-weight: 500;
  margin-bottom: .5rem;
}

.section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 3rem;
}

/* ============ Services ============ */
.services {
  background: var(--services-bg);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 680px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: 2.35rem 2rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
  transition: box-shadow .2s;
}

@media (max-width: 480px) {
  .card {
    padding: 1.65rem 1.25rem;
  }
}

.card:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}

.card h3 {
  font-weight: 600;
  font-size: 1rem;
}

.card p {
  font-size: .95rem;
  color: var(--muted-foreground);
  text-align: center;
}

.card .row {
  display: flex;
  align-items: center;
  gap: .5rem;
}

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

.icon-accent {
  color: var(--accent);
}

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

/* ============ Comparison ============ */
.comparison {
  background: var(--comparison-bg);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 78rem;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .comparison-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.compare-item {
  width: 100%;
}

.compare-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 100%;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}

@media (min-width: 640px) {
  .compare-box {
    flex-direction: row;
  }
}

.compare-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}

.compare-side.raster {
  background: hsla(39, 60%, 92%, .4);
}

.compare-side img {
  width: 10rem;
  height: 10rem;
  object-fit: contain;
}

.compare-side.raster img {
  filter: blur(.5px);
}

.vs-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: var(--muted-foreground);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  z-index: 10;
}

.compare-labels {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4rem;
  margin-top: 1rem;
}

@media (max-width: 480px) {
  .compare-side {
    padding: 2rem 1rem;
  }

  .compare-labels {
    gap: .75rem 1.5rem;
  }
}

.compare-labels p {
  font-size: .95rem;
  font-weight: 600;
}

/* ============ How It Works ============ */
.howit {
  background: var(--howit-bg);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 78rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  min-height: 240px;
  padding: 1.5rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: .9rem;
}

.step h3 {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
}

.step p {
  font-size: .95rem;
  color: var(--muted-foreground);
  max-width: 16rem;
  text-align: center;
}

.step-arrow {
  color: var(--muted-foreground);
  display: none;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .step-arrow {
    display: block;
  }
}

/* ============ Trust ============ */
.trust {
  background: var(--trust-bg);
}

.trust h2 {
  margin-bottom: .75rem;
}

.trust-intro {
  color: var(--muted-foreground);
  max-width: 38rem;
  margin: 0 auto 2rem;
}

.trust-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 78rem;
  margin: 0 auto;
  text-align: left;
}

@media (min-width: 640px) {
  .trust-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .trust-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.testimonial {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: .9rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
  transition: box-shadow .2s, transform .2s;
}

.testimonial:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
  transform: translateY(-2px);
}

.testimonial::before {
  content: "“";
  position: absolute;
  top: .35rem;
  right: 1rem;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1;
  color: hsla(28, 92%, 48%, .16);
  pointer-events: none;
}

.quote {
  font-size: 1rem;
  color: var(--muted-foreground);
  font-style: italic;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.person {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.avatar {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 9999px;
  background: hsla(28, 92%, 48%, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid hsla(28, 92%, 48%, .24);
}

.name {
  font-size: .95rem;
  font-weight: 600;
}

.role {
  font-size: .875rem;
  color: var(--muted-foreground);
}

.badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto 2rem;
}

.badge {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .85rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: .8rem;
  background: var(--card);
  min-width: 190px;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
}

.badge svg {
  width: 38px;
  height: 38px;
}

/* ============ CTA ============ */
.cta {
  background: var(--cta-bg);
  padding: 2.5rem 0;
}

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

.btn-cta {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: var(--accent-foreground);
  font-weight: 700;
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
  transition: opacity .2s;
  border: 3px solid var(--accent-foreground);
}


.btn-cta:hover {
  opacity: .9;
  color: var(--accent);
  background: var(--accent-foreground);

}

/* ============ Shared Page Elements ============ */
main {
  overflow: hidden;
}

.page-hero {
  background: var(--hero-bg);
  padding: 8rem 0 4rem;
}

@media (max-width: 480px) {
  .page-hero {
    padding: 6.5rem 0 3.5rem;
  }
}

.page-hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.page-hero-inner {
  max-width: 48rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1rem;
}

.page-hero p {
  color: var(--muted-foreground);
  font-size: 1.04rem;
  max-width: 42rem;
}

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

.page-hero-image img {
  width: 100%;
  max-width: 34rem;
  border-radius: 1rem;
  filter: drop-shadow(0 20px 25px rgba(0, 0, 0, .12));
}

@media (min-width: 900px) {
  .page-hero-layout {
    grid-template-columns: 1fr .85fr;
  }
}

.section-action {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: .8rem;
  flex-wrap: wrap;
}

.card-cta {
  justify-content: center;
}

.card .btn-accent,
.card .btn-outline {
  margin-top: auto;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  max-width: 76rem;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .service-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.service-card {
  align-items: flex-start;
  text-align: left;
  min-height: 0;
}

.service-card p {
  text-align: left;
}

.service-card h3 {
  font-size: 1.2rem;
}

.mini-list {
  list-style: none;
  display: grid;
  gap: .45rem;
  color: var(--muted-foreground);
  font-size: .95rem;
}

.mini-list li::before {
  content: "→";
  color: var(--accent);
  font-weight: 700;
  margin-right: .45rem;
}

.case-study-grid {
  display: grid;
  gap: 2rem;
  max-width: 78rem;
  margin: 0 auto;
}

.case-study {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
}

@media (max-width: 480px) {
  .case-study,
  .service-example,
  .article-cta,
  .simple-panel {
    padding: 1rem;
  }
}

.case-study-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 980px) {
  .case-study-content {
    grid-template-columns: 1.25fr .75fr;
  }
}

.case-copy {
  text-align: left;
}

.case-copy h2,
.case-copy h3 {
  margin-bottom: .8rem;
}

.case-copy p {
  color: var(--muted-foreground);
  margin-bottom: .8rem;
}

.portfolio-category {
  margin-bottom: 3rem;
}

.portfolio-category:last-child {
  margin-bottom: 0;
}

.portfolio-category-heading {
  text-align: center;
  margin-bottom: 1.5rem;
}

.portfolio-category-heading h2 {
  margin-bottom: .5rem;
}

.portfolio-category-heading p {
  color: var(--muted-foreground);
}

.service-example-grid {
  display: grid;
  gap: 2rem;
  max-width: 78rem;
  margin: 0 auto;
}

.service-example {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
}

.service-cta {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.service-cta h3 {
  margin-bottom: .35rem;
}

.service-cta p {
  margin-bottom: 1rem;
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  max-width: 76rem;
  margin: 0 auto;
}

@media (min-width: 760px) {
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .article-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.article-card {
  align-items: flex-start;
  text-align: left;
  min-height: 300px;
}

.article-card h2,
.article-card h3 {
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  line-height: 1.25;
  margin-bottom: .9rem;
}

.article-card p {
  text-align: left;
}

.article-date {
  font-size: .88rem;
  font-weight: 600;
  color: var(--accent);
}

.blog-state {
  color: var(--muted-foreground);
}

.blog-card-image,
.article-featured-image {
  width: 100%;
  margin: 0 0 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: .9rem;
  background: var(--comparison-bg);
}

.blog-card-image img,
.article-featured-image img {
  display: block;
  width: 100%;
  height: auto;
}

.blog-card-image img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-featured-image {
  margin-top: 1rem;
}

.article-featured-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-hero-layout:has(.article-featured-image) {
  display: block;
}

.page-hero-inner:has(.article-featured-image) {
  max-width: 760px;
  margin: 0 auto;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
}

.article-body h2,
.article-body h3 {
  margin: 2rem 0 .75rem;
}

.article-body p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.article-body ul {
  margin: 0 0 1.25rem 1.25rem;
  color: var(--muted-foreground);
}

.article-cta {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: .9rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 76rem;
  margin: 0 auto;
}

@media (min-width: 760px) {
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.faq-card {
  min-height: 0;
  align-items: flex-start;
  text-align: left;
}

.faq-card p {
  text-align: left;
}

.lead-section {
  background: var(--comparison-bg);
}

.lead-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .lead-inner {
    grid-template-columns: .9fr 1.1fr;
  }
}

.lead-inner h2 {
  margin-bottom: 1rem;
}

.lead-inner p {
  color: var(--muted-foreground);
}

.lead-form,
.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: .9rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: .9rem;
  padding: 1.25rem;
}

.contact-intro {
  grid-column: 1 / -1;
}

.form-field {
  display: grid;
  gap: .45rem;
}

.form-field label {
  font-weight: 700;
  color: var(--foreground);
}

.honeypot {
  display: none;
}

.field-message {
  min-height: 1rem;
  font-size: .82rem;
  color: hsl(0, 70%, 42%);
}

.form-note {
  color: var(--muted-foreground);
  font-size: .9rem;
  margin: 0;
}

.preferred-upload {
  padding: .75rem .9rem;
  border: 1px solid var(--border);
  border-radius: .7rem;
  background: var(--comparison-bg);
}

.upload-field input[type="file"] {
  margin-top: .7rem;
}

.upload-area {
  display: grid;
  gap: .35rem;
  padding: 1.15rem;
  border: 1px dashed var(--border);
  border-radius: .9rem;
  background: var(--comparison-bg);
  color: var(--muted-foreground);
  cursor: pointer;
}

.upload-title {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--foreground);
}

.upload-help {
  font-size: .92rem;
}

.lead-form .upload-help:last-child {
  font-size: .78rem;
  line-height: 1.45;
  opacity: .8;
}

.form-status {
  min-height: 1.25rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.form-status.success {
  color: var(--accent);
}

.form-status.error {
  color: hsl(0, 70%, 42%);
}

.btn-accent:disabled,
.contact-form.is-submitting .btn-accent,
.lead-form.is-submitting .btn-accent {
  cursor: not-allowed;
  opacity: .7;
}

.field-error,
input.field-error,
textarea.field-error,
select.field-error {
  border-color: hsl(0, 70%, 42%);
  box-shadow: 0 0 0 3px hsla(0, 70%, 42%, .12);
}

.upload-field input.field-error {
  border-color: hsl(0, 70%, 42%);
}

.form-field:has(input.field-error) .upload-area {
  border-color: hsl(0, 70%, 42%);
  box-shadow: 0 0 0 3px hsla(0, 70%, 42%, .12);
}

.lead-form button {
  justify-self: center;
}

@media (min-width: 700px) {
  .lead-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-form input:nth-child(3),
  .lead-form .upload-field,
  .lead-form .form-status,
  .lead-form button {
    grid-column: span 2;
  }
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: .5rem;
  padding: .85rem 1rem;
  font: inherit;
  color: var(--foreground);
  background: var(--card);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .two-column {
    grid-template-columns: 1fr 1fr;
  }
}

.simple-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: .9rem;
  padding: 1.5rem;
}

.simple-panel h2,
.simple-panel h3 {
  margin-bottom: .8rem;
}

.simple-panel p {
  color: var(--muted-foreground);
  margin-bottom: .8rem;
}

.auth-panel {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.auth-panel h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  margin-bottom: 1rem;
}

.footer {
  background: var(--foreground);
  color: var(--accent-foreground);
  padding: 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.footer-column {
  display: grid;
  gap: .55rem;
}

.footer-column h2,
.footer-column h3 {
  font-size: 1rem;
}

.footer-column p {
  opacity: .85;
  max-width: 18rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.footer a {
  color: var(--accent-foreground);
  opacity: .85;
}

.footer a:hover {
  opacity: 1;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .footer-inner {
    flex-direction: row;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  }
}
