/* ------------------------------------------------------- */
/* Base – readable, spacious typography without build step */
/* ------------------------------------------------------- */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #0f172a; /* slate-900 */
  background-color: #ffffff;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

h1, h2, h3, h4 {
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.25rem; /* text-4xl */
  line-height: 1.2;   /* leading-tight */
}
@media (min-width: 640px) {
  h1 { font-size: 3rem; } /* text-5xl */
}
@media (min-width: 1024px) {
  h1 { font-size: 3.75rem; } /* text-6xl */
}

h2 {
  font-size: 1.875rem; /* text-3xl */
  line-height: 1.25;
}
@media (min-width: 640px) {
  h2 { font-size: 2.25rem; } /* text-4xl */
}

h3 {
  font-size: 1.25rem; /* text-xl */
  line-height: 1.5;
  font-weight: 700;
}

h4 {
  font-size: 1.125rem; /* text-lg */
  line-height: 1.4;
  font-weight: 600;
}

p {
  font-size: 1.125rem; /* text-lg */
  line-height: 1.7;    /* expanded for readability */
  color: #334155;      /* slate-700 */
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  p { font-size: 1.25rem; } /* sm:text-xl */
}

p + p {
  margin-top: 1.5rem;
}

p + h1,
p + h2,
p + h3,
p + h4 {
  margin-top: 2rem;
}

.feature-card p,
.card p {
  margin-bottom: 0;
}

a {
  color: #059669; /* emerald-600 */
  transition: color 150ms ease;
  font-weight: 500;
}

/* ------------------------------------------------------- */
/* Utilities – spacing, radiuses, shadows, contrast        */
/* ------------------------------------------------------- */
.section {
  padding-top: 5rem;  /* py-20 */
  padding-bottom: 5rem;
}
@media (min-width: 1024px) {
  .section {
    padding-top: 6rem; /* lg:py-24 */
    padding-bottom: 6rem;
  }
}

.container-xl {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 640px) {
  .container-xl {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
@media (min-width: 1024px) {
  .container-xl {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.rounded-card {
  border-radius: 1rem; /* rounded-2xl */
}
.rounded-sharp {
  border-radius: 0.75rem; /* rounded-xl */
}

.shadow-soft {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.shadow-card {
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.14), 0 4px 6px -4px rgba(15, 23, 42, 0.12);
  border: 1px solid #e2e8f0;
}
.shadow-banner {
  box-shadow: 0 10px 25px -10px rgba(15, 23, 42, 0.15);
}

.par-sm {
  font-size: 1rem;
  line-height: 1.6;
  color: #475569; /* slate-600 */
  font-weight: 400;
}

.par-md {
  font-size: 1.125rem; /* text-lg */
  line-height: 1.625;
  color: #334155; /* slate-700 */
  font-weight: 400;
}

.high-contrast {
  color: #0f172a;
  font-weight: 600;
}
.low-contrast {
  color: #64748b;
  font-weight: 400;
}

/* ------------------------------------------------------- */
/* Flex order utilities for responsive reordering          */
/* ------------------------------------------------------- */
.order-1 { order: 1; }
.order-2 { order: 2; }
.order-3 { order: 3; }
.order-4 { order: 4; }
.order-5 { order: 5; }

/* Responsive order utilities */
@media (min-width: 1024px) {
  .lg\:order-1 { order: 1; }
  .lg\:order-2 { order: 2; }
  .lg\:order-3 { order: 3; }
  .lg\:order-4 { order: 4; }
  .lg\:order-5 { order: 5; }
}

/* Additional flex utilities */
.flex-1 { flex: 1 1 0%; }
.flex-2 { flex: 2 1 0%; }

/* ------------------------------------------------------- */
/* Grid utilities for responsive layout                    */
/* ------------------------------------------------------- */
.grid-responsive {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .grid-responsive {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.grid-area-title {
  grid-area: 1 / 1 / 2 / 2;
}

.grid-area-mockup {
  grid-area: 2 / 1 / 3 / 2;
}

.grid-area-content {
  grid-area: 3 / 1 / 4 / 2;
}

@media (min-width: 1024px) {
  .grid-area-title {
    grid-area: 1 / 1 / 2 / 2;
  }
  
  .grid-area-mockup {
    grid-area: 1 / 2 / 3 / 3;
    align-self: center;
  }
  
  .grid-area-content {
    grid-area: 2 / 1 / 3 / 2;
  }
}

/* ------------------------------------------------------- */
/* Components – cards, buttons, inputs, links, banner      */
/* ------------------------------------------------------- */
.btn,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 0.75rem; /* rounded-xl */
  transition: color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
  user-select: none;
  font-size: 1rem;
  padding: 0.875rem 1.75rem; /* px-6 py-3.5 */
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: #059669; /* emerald-600 */
  color: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(15, 118, 110, 0.3), 0 4px 6px -4px rgba(15, 118, 110, 0.25);
}
.btn-primary:hover {
  background-color: #047857; /* emerald-700 */
}

.btn-secondary {
  background-color: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}
.btn-secondary:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

.input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  padding: 0.875rem 1rem; /* px-4 py-3.5 */
  font-size: 1rem;
  color: #0f172a;
  line-height: 1.5;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  font-weight: 400;
}
.input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}
.input:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-radius: 1rem;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 1.5rem; /* p-6 */
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.12), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-radius: 1rem;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.12), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
  height: 100%; /* ensure consistent height */
}

.guide-link {
  display: block;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  padding: 1.25rem;
  font-size: 1rem;
  color: #0f172a;
  transition: border-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
  font-weight: 500;
  text-decoration: none;
}
.guide-link:hover {
  border-color: #34d399;
  color: #065f46;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.12), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
}

.banner {
  width: 100%;
  padding: 1.5rem 1rem;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  backdrop-filter: blur(24px);
}

@media (min-width: 768px) {
  .banner {
    padding: 1.5rem 2rem;
  }
}

.section-header {
  max-width: 48rem;
  margin: 0 auto 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  line-height: 1.625;
  color: #475569;
  max-width: 36rem;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .section-header p {
    font-size: 1.25rem;
  }
}

/* Additional utility for crisp icons */
.icon-crisp {
  filter: brightness(1.2) contrast(1.1);
}

/* Focus states for accessibility */
*:focus {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

/* ------------------------------------------------------- */
/* Pricing Cards - Perfect Horizontal Alignment            */
/* ------------------------------------------------------- */
.pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.pricing-card-grid {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 1.5rem;
  height: 100%;
  min-height: 600px; /* Ensures consistent height on all screens */
}

.pricing-card-header {
  grid-row: 1;
}

.pricing-card-price {
  grid-row: 2;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0; /* slate-200 */
}

.pricing-card-features {
  grid-row: 3;
  margin-bottom: 1.5rem;
}

.pricing-card-features ul {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.pricing-card-form {
  grid-row: 4;
  align-self: flex-end;
  width: 100%;
}

/* Ensure both cards have same height on desktop */
@media (min-width: 768px) {
  .pricing-card {
    height: 100%;
  }
  
  .pricing-card-grid {
    min-height: 620px; /* Slightly taller for better form alignment */
  }
  
  .pricing-card-form form {
    margin-top: auto;
  }
}

/* Essential card border refinement */
.pricing-card.border-emerald-200 {
  border-width: 1px !important;
  border-color: #a7f3d0 !important; /* emerald-200 */
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.12), 
              0 4px 6px -4px rgba(15, 23, 42, 0.1),
              0 0 0 1px rgba(167, 243, 208, 0.3); /* subtle inner glow */
}

/* Hover effect for Essential card */
.pricing-card.border-emerald-200:hover {
  border-color: #6ee7b7 !important; /* emerald-300 on hover */
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.15), 
              0 8px 10px -6px rgba(15, 23, 42, 0.1),
              0 0 0 1px rgba(110, 231, 183, 0.4);
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .pricing-card-grid {
    min-height: auto;
    gap: 1.25rem;
  }
  
  .pricing-card-features {
    margin-bottom: 1rem;
  }
}

/* Remove any previous border-2 classes if they exist */
.border-2 {
  border-width: 1px !important;
}

/* Ensure form inputs have consistent styling */
.pricing-card-form input:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Make badge more subtle */
.inline-flex.rounded-full.bg-emerald-100 {
  background-color: #d1fae5; /* emerald-100 */
  border: 1px solid #a7f3d0; /* emerald-200 */
}
